-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post formats: Make title and description human readable #69275
Conversation
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: Aki Hamano <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @carolinan!
) * Post formats: Make title and description human readable Co-authored-by: carolinan <[email protected]> Co-authored-by: t-hamano <[email protected]> Co-authored-by: Mamaduka <[email protected]>
What?
Closes #65319
This PR adds a new 6.8 compatibility file with a filter that makes the title and description of the post format templates human readable.
This change is already merged into WordPress 6.8 in https://core.trac.wordpress.org/ticket/62326
No additional PHP backport from Gutenberg to core is needed.
Why?
In the template data views, the post format templates showed the slug instead of a title, and there was no description.
How?
Filters
default_template_types
to add a description and title to the different post format templates.Testing Instructions
First, you need a block theme, and you need to enable post format support on the active theme.
Example:
Next, add a post format archive template inside the templates folder.
The content of the file does not matter for this test. I have used the link post format as example:
templates/taxonomy-post_format-post-format-link.html
Go to Appearance > Editor > Templates.
Note that the link archive is available, and that there is a name and description.
Screenshots or screencast
After: The link post format template on the Site Editor Template screen has a readable name and description.
