You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Option to only adjust post_modify date when scheduling blog posts updates #403
When using the "Rewrite & Republish" feature on blog posts, if I schedule an update, it changes the
post_date and bring that post to the top of the post feed.
Instead, I would like is an option to mimic the default WordPress behavior, and only modify the post_modified and post_modified_gmt dates when the blog post is updated (when using the scheduling feature).
I looked into this and opened a PR with a fix: #549.
The scheduled copy-back in Post_Republisher::republish_post_elements() passes the copy's full post object, including its future post_date, to wp_update_post(), so the original always adopts the scheduled date.
PR #549 adds a new option (off by default) called "Preserve the original publication date" on the Settings > Duplicate Post page, What to copy tab. When enabled, the date fields are left out of the post array for scheduled republishing, so WordPress keeps the original publish date and only refreshes the modified date, the same as a normal post update. Immediate republishing is not affected. I added unit and integration tests for both states of the option, and confirmed the behavior with a manual test build.
Happy to adjust the wording of the setting or its placement if maintainers prefer a different approach. Feedback welcome.
Activity
faisalahammad commentedon Sep 17, 2026
I looked into this and opened a PR with a fix: #549.
The scheduled copy-back in
Post_Republisher::republish_post_elements()passes the copy's full post object, including its futurepost_date, towp_update_post(), so the original always adopts the scheduled date.PR #549 adds a new option (off by default) called "Preserve the original publication date" on the Settings > Duplicate Post page, What to copy tab. When enabled, the date fields are left out of the post array for scheduled republishing, so WordPress keeps the original publish date and only refreshes the modified date, the same as a normal post update. Immediate republishing is not affected. I added unit and integration tests for both states of the option, and confirmed the behavior with a manual test build.
Happy to adjust the wording of the setting or its placement if maintainers prefer a different approach. Feedback welcome.