-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Account for unpublished post statuses. #1156
Conversation
Let's also credit |
…ion is causing issues
@peterwilsoncc This looks good to me and seems to fix the issues mentioned. That said, one of the reported issues was around scheduled posts, in particular this was the reported problem:
I tested these steps both on the But I was able to reproduce the second problem both on |
Sorry, just to add more details to ^ above as I tested this a bit more. If when Pulling or Pushing you leave the So the remaining issue here is if you Pull a scheduled item in as a draft (which is the default) and you then update the original scheduled item, it turns the status from draft to published. I think ideal would be keeping it as draft but even changing it to scheduled would be better |
In ee56b99 I've pushed a change to prevent the post status from being updated when updating a post. The post status will always need to be changed on the distributed copy of the content. Testing notes:
|
Description of the Change
Fixes various issues relating to post statuses:
See #1149
How to test the Change
wp post generate --count=5 --post_title="MS1 Draft" --post_author=1 --post_status=draft
wp post generate --count=5 --post_title="MS1 Scheduled" --post_author=1 --post_status=future --post_date="2123-11-20 21:46:18"
Changelog Entry
Credits
Props @peterwilsoncc, @jeffpaul, @dkotter, @maxledoux, @pcrumm
Checklist: