Opened 7 years ago
Closed 4 years ago
#3133 closed defect (bug) (fixed)
Approving a post should not reset its date
Reported by: | SergeyBiryukov | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.6.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | API - Moderation | Keywords: | |
Cc: |
Description
Background: #meta2963 / [meta5685].
Approving a post from Pending queue resets the post date, which should not happen.
Approving a previously unapproved post does not change its date.
The issue is that wp_update_post() overwrites the date for pending posts, unless the post already has a non-empty post_date_gmt
, or a non-empty $postarr['edit_date']
is passed to the function.
Change History (9)
#1
@
7 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 2.6.1
- Owner set to johnjamesjacoby
#3
@
5 years ago
- Keywords needs-testing added
- Milestone changed from 2.6.2 to 2.6.3
It's plausible this was unintentionally fixed in 2.6.0, in relation to other last-activity and count fixes.
This needs more testing.
Move these to 2.6.2.