Skip to content

Templates: Add date field - #11474

Closed
ntsekouras wants to merge 2 commits into
WordPress:trunkfrom
ntsekouras:templates-add-date-field
Closed

ntsekouras wants to merge 2 commits into
WordPress:trunkfrom
ntsekouras:templates-add-date-field

Conversation

@ntsekouras

@ntsekouras ntsekouras commented Apr 8, 2026 •

Copy link
Copy Markdown
Contributor

Backports: WordPress/gutenberg#77134

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

This PR adds the date field in templates and template parts. This will help with the simplification of revisions handling for these post types, as there is a lot of scattered code around that working around the fact that they expose only the modified date.

Testing Instructions

  1. date field should be returned through REST API
  2. everything should work exactly as before - especially the templates/template parts flows since the change affects only them.

This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@ntsekouras ntsekouras self-assigned this Apr 8, 2026
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@t-hamano

t-hamano commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

@ntsekouras, Can you submit a core ticket so we can track this feature enhancement as part of the 7.1 release?

@github-actions

github-actions Bot commented Apr 9, 2026 •

Copy link
Copy Markdown

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.

Core Committers: Use this line as a base for the props when committing in SVN:

Props ntsekouras, audrasjb, wildworks.

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

@ntsekouras

ntsekouras commented Apr 9, 2026 •

Copy link
Copy Markdown
Contributor Author

@ntsekouras, Can you submit a core ticket so we can track this feature enhancement as part of the 7.1 release?

Of course. I opened it hastily to get the changelog entry for GB and will handle this now.

--edit

Created the ticket and updated the PR's description with it.

@ntsekouras
ntsekouras force-pushed the templates-add-date-field branch from 0c2c181 to a708f2d Compare April 9, 2026 10:09

@audrasjb audrasjb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The PR looks good to me for a Gutenberg merge when trunk is reopened for commit.

@ntsekouras
ntsekouras force-pushed the templates-add-date-field branch from a708f2d to c2b090e Compare June 29, 2026 11:16
@github-actions

Copy link
Copy Markdown

A commit was made that fixes the Trac ticket referenced in the description of this pull request.

SVN changeset: 62571
GitHub commit: 0853070

This PR will be closed, but please confirm the accuracy of this and reopen if there is more work to be done.

@github-actions github-actions Bot closed this Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants