[wp-trac] [WordPress Trac] #62468: wp_update_post overwrites post_date when updating post_status
WordPress Trac
noreply at wordpress.org
Mon Nov 18 22:35:00 UTC 2024
#62468: wp_update_post overwrites post_date when updating post_status
-------------------------+-------------------------------------------------
Reporter: aguerra07 | Owner: (none)
Type: defect | Status: new
(bug) |
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post | Version: 6.7
Types |
Severity: normal | Resolution:
Keywords: has-patch | Focuses: performance, coding-standards,
needs-testing | php-compatibility
-------------------------+-------------------------------------------------
Changes (by aguerra07):
* Attachment "fix-wp-update-post.patch" added.
This patch fixes a bug in wp_update_post that could clear the post_date
when updating the post status, ensuring it is preserved when explicitly
set.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62468>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list