-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Publish date uses draft create date and not updated on publish #7195
Comments
So it looks like what actually gets stored is the current date, but what gets displayed on the publish confirmation is the original draft created date. See screenshots below for workflow. Draft created July 29, then later published on July 31: Posts screen showing older dateEditing the older draft post in GutenbergClick PublishThis is the one that is confusing because that is not the publish date that is going to be used. Posts list after publishingPublish date now accurately reflects the date/time the publish button was actually clicked. Viewing published post on the front-end |
So after some further research, this just appears to be more of a labeling issue than an actual saving problem. When first creating a post, the publish panel shows the Publish date as the time that the post was created or a draft was saved. It should show This is confusing because the date being shown is not necessarily what will be used and saved when published. The reason for this is somewhat convoluted. Internally WordPress uses a Fixing will require a modification to the REST API to allow |
Another proposed REST API solution is adding a |
I think any remaining issue here was resolved with #9967 |
Describe the bug
When creating a draft several days ahead of time, and then publishing the post will keep the same early draft date and not use the date it was published.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Unless the date gets set specifically, I expect the publish date to be the date it is published, not the date when the draft was created.
The text was updated successfully, but these errors were encountered: