Skip to content
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

Backport/single default template title description #3214

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/wp-includes/block-template-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/tests/block-template-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down