[wp-trac] [WordPress Trac] #62468: wp_update_post overwrites post_date when updating post_status
WordPress Trac
noreply at wordpress.org
Wed Nov 20 19:20:19 UTC 2024
#62468: wp_update_post overwrites post_date when updating post_status
-------------------------------------------------+-------------------------
Reporter: aguerra07 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Posts, Post Types | Version: 6.7
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit- | Focuses:
tests reporter-feedback |
-------------------------------------------------+-------------------------
Changes (by desrosj):
* keywords: has-patch needs-testing => has-patch needs-testing needs-unit-
tests reporter-feedback
* focuses: performance, coding-standards, php-compatibility =>
Comment:
Hi @aguerra07,
Welcome to Trac!
This one will definitely require unit tests that first demonstrate the
initial problem, and then demonstrate the changes work as expected with
out side effects.
[https://make.wordpress.org/core/handbook/contribute/git/github-pull-
requests-for-code-review/ Creating a pull request on GitHub] will run the
entire test suite against your suggested code changes to confirm there are
no unexpected consequences.
Also, can you proved more context to the problem? Did this just start
happening after updating to 6.7? Or was has this always been the behavior?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62468#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list