-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Site Editor]: Update single
default template copy
#41302
Conversation
), | ||
'single' => array( | ||
'title' => _x( 'Single', 'Template name', 'gutenberg' ), | ||
'description' => __( 'Displays any single post type.', 'gutenberg' ), |
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.
Here are the actual changes for single
template.
The description is tricky. It would be good to indicate the relationship between this template and the more specific alternatives. For reference here's what we have currently in #41189 for single-$posttype: Perhaps something like:
What do you think? |
55d1b4b
to
a9a59b9
Compare
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.
Co-authored-by: George Mamadashvili <georgemamadashvili@gmail.com>
It makes sense to me but it might be good to get input from themers :) |
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
* [Site Editor]: Update single default template copy * Update lib/compat/wordpress-6.1/block-template-utils.php Co-authored-by: George Mamadashvili <georgemamadashvili@gmail.com> Co-authored-by: George Mamadashvili <georgemamadashvili@gmail.com>
In order to add more template types we need to update some copy from the current default templates provided. This updates the `single` template copy as it's needed to clear up the ambiguity between the single template that is the fallback for any custom post type (including `post`) and the menu item to be added in a subsequent commit, that will allow the creation the `single-post` template and any `single_$post_type` template. This commit backports the original PR from Gutenberg repository: * [WordPress/gutenberg#41302 #41302: Site Editor: Update single default template copy] Follow-up to [52062], [52331]. Props ntsekouras, bernhard-reiter, jameskoster, Mamaduka, scruffian. Fixes #56534. Built from https://develop.svn.wordpress.org/trunk@54104 git-svn-id: http://core.svn.wordpress.org/trunk@53663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
In order to add more template types we need to update some copy from the current default templates provided. This updates the `single` template copy as it's needed to clear up the ambiguity between the single template that is the fallback for any custom post type (including `post`) and the menu item to be added in a subsequent commit, that will allow the creation the `single-post` template and any `single_$post_type` template. This commit backports the original PR from Gutenberg repository: * [WordPress/gutenberg#41302 #41302: Site Editor: Update single default template copy] Follow-up to [52062], [52331]. Props ntsekouras, bernhard-reiter, jameskoster, Mamaduka, scruffian. Fixes #56534. Built from https://develop.svn.wordpress.org/trunk@54104 git-svn-id: https://core.svn.wordpress.org/trunk@53663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
In order to add more template types we need to update some copy from the current default templates provided. This updates the `single` template copy as it's needed to clear up the ambiguity between the single template that is the fallback for any custom post type (including `post`) and the menu item to be added in a subsequent commit, that will allow the creation the `single-post` template and any `single_$post_type` template. This commit backports the original PR from Gutenberg repository: * [WordPress/gutenberg#41302 #41302: Site Editor: Update single default template copy] Follow-up to [52062], [52331]. Props ntsekouras, bernhard-reiter, jameskoster, Mamaduka, scruffian. Fixes #56534. git-svn-id: https://develop.svn.wordpress.org/trunk@54104 602fd350-edb4-49c9-b593-d223f7449a82
In order to add more template types we need to update some copy from the current default templates provided. This updates the `single` template copy as it's needed to clear up the ambiguity between the single template that is the fallback for any custom post type (including `post`) and the menu item to be added in a subsequent commit, that will allow the creation the `single-post` template and any `single_$post_type` template. This commit backports the original PR from Gutenberg repository: * [WordPress/gutenberg#41302 #41302: Site Editor: Update single default template copy] Follow-up to [52062], [52331]. Props ntsekouras, bernhard-reiter, jameskoster, Mamaduka, scruffian. Fixes #56534. Built from https://develop.svn.wordpress.org/trunk@54104
In order to add more template types we need to update some copy from the current default templates provided. This updates the `single` template copy as it's needed to clear up the ambiguity between the single template that is the fallback for any custom post type (including `post`) and the menu item to be added in a subsequent commit, that will allow the creation the `single-post` template and any `single_$post_type` template. This commit backports the original PR from Gutenberg repository: * [WordPress/gutenberg#41302 #41302: Site Editor: Update single default template copy] Follow-up to [52062], [52331]. Props ntsekouras, bernhard-reiter, jameskoster, Mamaduka, scruffian. Fixes #56534. git-svn-id: https://develop.svn.wordpress.org/trunk@54104 602fd350-edb4-49c9-b593-d223f7449a82
What?
Part of: #37407
Needed for: #41189
In order to add more template types we need to update some copy from the current default templates provided.
This PR intents to update the
single
template copy as it's needed to clear up ambiguity between thesingle
template that is the fallback for any custom post type(includingpost
) and the menu item to be added in the linked PR, that will allow the creation thesingle-post
template and anysingle_$post_type
template.Testing Instructions
Add new
button to create a new templateSingle Post
menu item has new copyImportant Everything else should work as expected without any regression. This includes the existing themes/templates, creation flow, resolution of templates, etc..