Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
XMLRPC - Editing a draft post with wp.editPost causes its published date to be set #419
Dates being set wrong in posts to WordPress. The issue in summary is that if you have a draft post on WordPress, changing its status to “Published” doesn’t update the publish date from the time the draft was originally saved.
The post has a published date corresponding to the time I first starting writing the post, and when we finally go to publish the podcast, the date remains the same.
Motivation and context
Types of changes
Thanks for the review. This was a backport from the core trac issue.
This is not a personal problem to me but there are reports. For context please read this.
Software it applies: https://red-sweater.com/marsedit/
OK, got it.
Generally when evaluating bugfix PRs I look for these things (ideally all of them)
I think this PR meets all criteria except the first one. I understand this part of the code better than I'd like, because I wrote the workarounds for this issue in the WP REST API.
We also discussed it a bit in Slack and decided to accept this one: https://classicpress.slack.com/archives/CCCF22HG8/p1560534419056600
Could we adopt this in the contributions section of the read me? It might iron out some issues for PRs