diff --git a/src/wp-includes/block-template-utils.php b/src/wp-includes/block-template-utils.php index 08933d4f817c0..00b7a4f75691b 100644 --- a/src/wp-includes/block-template-utils.php +++ b/src/wp-includes/block-template-utils.php @@ -130,8 +130,8 @@ function get_default_block_template_types() { 'description' => __( 'Displays a single post or page.' ), ), 'single' => array( - 'title' => _x( 'Single Post', 'Template name' ), - 'description' => __( 'Displays a single post.' ), + 'title' => _x( 'Single', 'Template name' ), + 'description' => __( 'The default template for displaying any single post or attachment.' ), ), 'page' => array( 'title' => _x( 'Page', 'Template name' ), diff --git a/tests/phpunit/tests/block-template-utils.php b/tests/phpunit/tests/block-template-utils.php index 666edd020a744..319e54ac29eb1 100644 --- a/tests/phpunit/tests/block-template-utils.php +++ b/tests/phpunit/tests/block-template-utils.php @@ -127,8 +127,8 @@ function test_build_block_template_result_from_file() { $this->assertSame( 'single', $template->slug ); $this->assertSame( 'publish', $template->status ); $this->assertSame( 'theme', $template->source ); - $this->assertSame( 'Single Post', $template->title ); - $this->assertSame( 'Displays a single post.', $template->description ); + $this->assertSame( 'Single', $template->title ); + $this->assertSame( 'The default template for displaying any single post or attachment.', $template->description ); $this->assertSame( 'wp_template', $template->type ); // Test template parts.