Make WordPress Core


Ignore:
Timestamp:
03/09/2023 04:29:13 PM (23 months ago)
Author:
hellofromTonya
Message:

Editor: Add more details to template descriptions.

The template descriptions in get_default_block_template_types() are updated to add more details. Why? These descriptions are now more prominent in 6.2 to provide a better UX experience with more helpful information.

References:

Follow-up to [54761], [54104], [54269], [53129], [52331], [52062].

Props ntsekouras, andrewserong, bph, davidbaumwald, greenshady, glendaviesnz, hellofromTonya, jameskoster, mamaduka, peterwilsoncc, sabernhardt, SergeyBiryukov.
Fixes #57892.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/block-template-utils.php

    r55493 r55500  
    135135        $this->assertSame( 'theme', $template->source );
    136136        $this->assertSame( 'Single', $template->title );
    137         $this->assertSame( 'The default template for displaying any single post or attachment.', $template->description );
     137        $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 );
    138138        $this->assertSame( 'wp_template', $template->type );
    139139
Note: See TracChangeset for help on using the changeset viewer.