Skip to content
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

Retain the publishing date when updating posts. #956

Merged
merged 5 commits into from Jan 8, 2023

Conversation

peterwilsoncc
Copy link
Collaborator

@peterwilsoncc peterwilsoncc commented Oct 18, 2022

Description of the Change

When updating a published post, the post_date and post_date_gmt fields should remain unchanged.

Closes #700

How to test the Change

  1. On a multisite install, create two sites
  2. From the primary site publish a post
  3. Push distribute the post to a secondary site (published, not as draft).
  4. Visit the post on the front end of second site and observe the published time.
  5. Wait at least 60 seconds
  6. Edit the distributed post in the second site's admin.
  7. Unlink the post.
  8. Relink the post.
  9. Visit the post on the front end of the second site and observe the publish time.

On develop the publish time will have changed after relinking the post.
On this branch the publish time will not change.

Changelog Entry

Fixed - Retain published time when editing distributed posts.

Credits

Props @madriverweb, @codiller, @peterwilsoncc

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@peterwilsoncc peterwilsoncc self-assigned this Oct 18, 2022
@peterwilsoncc peterwilsoncc marked this pull request as ready for review October 19, 2022 01:10
@peterwilsoncc peterwilsoncc requested review from a team and Sidsector9 and removed request for a team October 19, 2022 01:10
@peterwilsoncc peterwilsoncc added this to the 2.0.0 milestone Oct 19, 2022
Copy link
Member

@Sidsector9 Sidsector9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this, tests well for me 👍

@peterwilsoncc peterwilsoncc merged commit e072514 into develop Jan 8, 2023
@peterwilsoncc peterwilsoncc deleted the fix/700-relink-changes-date branch January 8, 2023 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Restoring link to original changes published date
2 participants