Skip to content

Conversation

@ockham
Copy link
Contributor

@ockham ockham commented Oct 22, 2025

What?

Update the Date block's description.

Why?

Per #70585, the Date block defaults to allowing the user to setting a custom date. (The previous default behavior — showing the publish date of the containing post — was turned into a block variation).

However, the block description was not updated accordingly, as pointed out by @ntsekouras. This PR remediates that.

@ockham ockham self-assigned this Oct 22, 2025
@ockham ockham added the [Type] Bug An existing feature does not function as intended label Oct 22, 2025
@ockham ockham requested a review from ajitbohra as a code owner October 22, 2025 09:19
@ockham ockham added the [Block] Post Date Affects the Post Date Block label Oct 22, 2025
@ockham
Copy link
Contributor Author

ockham commented Oct 22, 2025

Note that the "Post Date" and "Modified Date" variations of the block already have more accurate descriptions:

description: __( "Display a post's publish date." ),

description: __( "Display a post's last updated date." ),

@ockham ockham added Backport to WP 6.9 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta Backport to Gutenberg RC Pull request that needs to be backported to a Gutenberg release candidate (RC) labels Oct 22, 2025
@github-actions
Copy link

Flaky tests detected in b734ce0.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/18711485431
📝 Reported issues:

Copy link
Contributor

@cbravobernal cbravobernal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ockham <[email protected]>
Co-authored-by: cbravobernal <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@ockham ockham merged commit ad91e0b into trunk Oct 22, 2025
48 of 49 checks passed
@ockham ockham deleted the update/date-block-description branch October 22, 2025 13:58
@github-actions github-actions bot added this to the Gutenberg 22.0 milestone Oct 22, 2025
@github-actions github-actions bot removed the Backport to WP 6.9 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Oct 22, 2025
gutenbergplugin pushed a commit that referenced this pull request Oct 22, 2025
The Date block now defaults to allowing the user to setting a custom date. (The previous default behavior — showing the publish date of the containing post — was turned into a block variation).

Co-authored-by: ockham <[email protected]>
Co-authored-by: cbravobernal <[email protected]>
Co-authored-by: ntsekouras <[email protected]>
@github-actions github-actions bot added the Backported to WP Core Pull request that has been successfully merged into WP Core label Oct 22, 2025
@github-actions
Copy link

I just cherry-picked this PR to the wp/6.9 branch to get it included in the next release: be5d5fd

@cbravobernal cbravobernal removed the Backport to Gutenberg RC Pull request that needs to be backported to a Gutenberg release candidate (RC) label Nov 5, 2025
@cbravobernal
Copy link
Contributor

Code is already on release/22.0 branch, no need to cherry-pick it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backported to WP Core Pull request that has been successfully merged into WP Core [Block] Post Date Affects the Post Date Block [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants