Skip to:

Opened 3 years ago

Last modified 7 weeks ago

#3133 new defect

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: needs-patch needs-testing


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 (6)

#1 @johnjamesjacoby
3 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 2.6.1
  • Owner set to johnjamesjacoby

#2 @johnjamesjacoby
8 months ago

  • Milestone changed from 2.6.1 to 2.6.2

Move these to 2.6.2.

#3 @johnjamesjacoby
8 months 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.

#4 @johnjamesjacoby
7 months ago

  • Milestone changed from 2.6.3 to 2.6.4

#5 @johnjamesjacoby
6 months ago

  • Milestone changed from 2.6.4 to 2.6.5

Moving open issues from 2.6.4 to 2.6.5, for 2.6.4 release today.

#6 @johnjamesjacoby
7 weeks ago

  • Milestone changed from 2.6.5 to 2.6.6
Note: See TracTickets for help on using tickets.