Skip to content

Commit

Permalink
Remove single-post from the default templates set. (#29668)
Browse files Browse the repository at this point in the history
* Remove single-post from the default templates set.

* Fix test.

Co-authored-by: Carolina Nymark <myazalea@hotmail.com>
  • Loading branch information
mtias and carolinan authored Apr 9, 2021
1 parent 3368371 commit b6272d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions lib/full-site-editing/default-template-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,9 @@ function gutenberg_get_default_template_types() {
'description' => __( 'Template used for displaying single views of the content. This template is a fallback for the Single, Post, and Page templates, which take precedence when they exist.', 'gutenberg' ),
),
'single' => array(
'title' => _x( 'Single', 'Template name', 'gutenberg' ),
'title' => _x( 'Single Post', 'Template name', 'gutenberg' ),
'description' => __( 'Template used to display a single blog post.', 'gutenberg' ),
),
'single-post' => array(
'title' => _x( 'Post', 'Template name', 'gutenberg' ),
'description' => __( 'Template used to display a single post type.', 'gutenberg' ),
),
'page' => array(
'title' => _x( 'Page', 'Template name', 'gutenberg' ),
'description' => __( 'Template used to display individual pages.', 'gutenberg' ),
Expand Down
2 changes: 1 addition & 1 deletion phpunit/class-block-templates-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function test_gutenberg_build_template_result_from_file() {
$this->assertEquals( 'single', $template->slug );
$this->assertEquals( 'publish', $template->status );
$this->assertEquals( 'theme', $template->source );
$this->assertEquals( 'Single', $template->title );
$this->assertEquals( 'Single Post', $template->title );
$this->assertEquals( 'Template used to display a single blog post.', $template->description );
$this->assertEquals( 'wp_template', $template->type );

Expand Down

0 comments on commit b6272d9

Please sign in to comment.