Skip to content

Commit

Permalink
Merge pull request #932 from Codeinwp/fix/instant-sharing-scheduled-post
Browse files Browse the repository at this point in the history
fix: run instant sharing only on published posts
  • Loading branch information
preda-bogdan authored Apr 23, 2024
2 parents f155ae4 + 65c72d4 commit ec84a19
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 ec84a19

Please sign in to comment.