Skip to:
Content

Opened 22 months ago

Last modified 16 months ago

#3133 new defect

Approving a post should not reset its date

Reported by: SergeyBiryukov Owned by: johnjamesjacoby
Milestone: 2.6.1 Priority: normal
Severity: normal Version:
Component: API - Moderation Keywords: needs-patch
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 (1)

#1 @johnjamesjacoby
16 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 2.6.1
  • Owner set to johnjamesjacoby
Note: See TracTickets for help on using tickets.