Skip to:
Content

bbPress.org

Opened 2 years ago

Last modified 3 days ago

#3133 new defect

Approving a post should not reset its date

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

#1 @johnjamesjacoby
2 years ago

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

#2 @johnjamesjacoby
10 days ago

  • Milestone changed from 2.6.1 to 2.6.2

Move these to 2.6.2.

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

Note: See TracTickets for help on using tickets.