Skip to content

Commit

Permalink
Merge pull request #25 from wponrails/bugfix/future-publish
Browse files Browse the repository at this point in the history
Do not sync new future status for planned publishes
  • Loading branch information
tolgap authored Jun 1, 2018
2 parents c98469c + a5e88aa commit 4eba685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function save_post($post_id, $post) {
}

# Make sure to not update in Rails when a new 'draft' post is added to WP
if ($post->post_status == 'draft' && $post->post_date == $post->post_modified) {
if ($post->post_status == 'future' || ($post->post_status == 'draft' && $post->post_date == $post->post_modified)) {
return false;
}

Expand Down

0 comments on commit 4eba685

Please sign in to comment.