Skip to content

Commit c8ec1c8

Browse files
Editor: Update single default template description.
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
1 parent 4ae6c24 commit c8ec1c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

wp-includes/block-template-utils.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ function get_default_block_template_types() {
130130
'description' => __( 'Displays a single post or page.' ),
131131
),
132132
'single' => array(
133-
'title' => _x( 'Single Post', 'Template name' ),
134-
'description' => __( 'Displays a single post.' ),
133+
'title' => _x( 'Single', 'Template name' ),
134+
'description' => __( 'The default template for displaying any single post or attachment.' ),
135135
),
136136
'page' => array(
137137
'title' => _x( 'Page', 'Template name' ),

wp-includes/version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '6.1-alpha-54103';
19+
$wp_version = '6.1-alpha-54104';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)