Make WordPress Core

Opened 7 weeks ago

Last modified 6 weeks ago

#66232 new defect (bug)

Inconsistency in date setting when changing post status

Reported by: TRILOS Owned by:
Priority: normal Milestone: Awaiting Review
Component: Posts, Post Types Version: 7.1.2
Severity: normal Keywords: has-patch has-unit-tests
Cc: Focuses: ui

Description

In my opinion the behaviour of WP is inconsistent regarding setting the post date when changing a post status draft to published:
– Using single post editing or Quick Edit, the former post date is being restored, while
– the current time is being set to all marked posts when using bulk editing.

This can lead to a misconception with massive impact: Expecting the known behaviour from single post editing also for bulik editing leads to the setting of a false date for quantitives of posts.

This also leads to losing direct access to the original publishing date of each post, which has to be researched using SQL on revisions´ dates in wp_posts for restoring it (this is maybe related to Component:Revisions).

My post on this in ​https://wordpress.org/support/forum/requests-and-feedback/ has been rejected with recommendation to post this in Trac.

Change History (1)

This ticket was mentioned in ​PR #14084 on ​WordPress/wordpress-develop by ​@arkaprabhachowdhury.


6 weeks ago
#1

  • Keywords has-patch has-unit-tests added

Preserve the original post date when bulk publishing drafts that have a recorded GMT date, such as previously published posts returned to draft. Continue publishing scheduled posts and never-published drafts at the current time. Add regression coverage for bulk publishing posts with distinct prior dates.

Trac ticket: https://core.trac.wordpress.org/ticket/66232

Use of AI Tools

AI assistance: Yes
Tool(s): Codex
Model(s): GPT-6
Used for: Code investigation, implementation, and regression test authoring. Changes were reviewed against the existing bulk edit behavior and coding standards.

Note: See TracTickets for help on using tickets.