Skip to content

Add test case for publishing post and updating date behavior#428

Merged
danielbachhuber merged 1 commit intomainfrom
improve/add-test-case-updating
Oct 13, 2023
Merged

Add test case for publishing post and updating date behavior#428
danielbachhuber merged 1 commit intomainfrom
improve/add-test-case-updating

Conversation

@danielbachhuber
Copy link
Copy Markdown
Member

@danielbachhuber danielbachhuber commented Oct 10, 2023

When publishing a post and updating its date at the same time, --edit_date=1 must be included:

https://github.com/WordPress/wordpress-develop/blob/a1852bd49b0995317ebdde8f2ee33eb818e8da9c/src/wp-includes/post.php#L4817-L4825

Resolves #427

@danielbachhuber danielbachhuber added command:post Related to 'post' command scope:testing Related to testing labels Oct 10, 2023
@danielbachhuber danielbachhuber added this to the 2.5.6 milestone Oct 10, 2023
@danielbachhuber danielbachhuber self-assigned this Oct 10, 2023
@danielbachhuber danielbachhuber requested a review from a team as a code owner October 10, 2023 16:02
@danielbachhuber danielbachhuber merged commit 45d4f3a into main Oct 13, 2023
@danielbachhuber danielbachhuber deleted the improve/add-test-case-updating branch October 13, 2023 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:post Related to 'post' command scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot update date when updating status to 'publish'

1 participant