Editor: update template titles in browse mode.

Adds more meaningful titles to templates in the browse mode template list.

Props ntsekouras, audrasjb.
Fixes #58713.


git-svn-id: https://develop.svn.wordpress.org/trunk@56145 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Isabel Brison
2023-07-06 03:02:57 +00:00
parent 06c1c4f0f7
commit 9d141e5a5e
2 changed files with 18 additions and 18 deletions

View File

@@ -135,7 +135,7 @@ class Tests_Block_Template_Utils extends WP_UnitTestCase {
$this->assertSame( 'single', $template->slug );
$this->assertSame( 'publish', $template->status );
$this->assertSame( 'theme', $template->source );
$this->assertSame( 'Single', $template->title );
$this->assertSame( 'Single Posts', $template->title );
$this->assertSame( 'Displays single posts on your website unless a custom template has been applied to that post or a dedicated template exists.', $template->description );
$this->assertSame( 'wp_template', $template->type );
$this->assertEmpty( $template->modified );