Skip to content

Commit

Permalink
fix: run instant sharing only on published posts
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Mar 7, 2024
1 parent 0f07156 commit 65c72d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/admin/class-rop-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ public function maybe_publish_now( $post_id ) {
}

$post_status = get_post_status( $post_id );
if ( ! in_array( $post_status, array( 'future', 'publish' ), true ) ) {
if ( ! in_array( $post_status, array( 'publish' ), true ) ) {
return;
}

Expand Down

0 comments on commit 65c72d4

Please sign in to comment.