Make WordPress Core

Changeset 52331


Ignore:
Timestamp:
12/07/2021 12:10:36 PM (3 years ago)
Author:
youknowriad
Message:

Site Editor: Update the block template descriptions.

Align the template descriptions with the latest changes from the Gutenberg plugin.

Props jameskoster, SergeyBiryukov.
See #54335.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-template-utils.php

    r52324 r52331  
    111111        'index'          => array(
    112112            'title'       => _x( 'Index', 'Template name' ),
    113             'description' => __( 'The default template used when no other template is available. This is a required template in WordPress.' ),
     113            'description' => __( 'Displays posts.' ),
    114114        ),
    115115        'home'           => array(
    116116            'title'       => _x( 'Home', 'Template name' ),
    117             'description' => __( 'Template used for the main page that displays blog posts. This is the front page by default in WordPress. If a static front page is set, this is the template used for the page that contains the latest blog posts.' ),
     117            'description' => __( 'Displays as the site\'s home page, or as the Posts page when a static home page it set.' ),
    118118        ),
    119119        'front-page'     => array(
    120120            'title'       => _x( 'Front Page', 'Template name' ),
    121             'description' => __( 'Template used to render the front page of the site, whether it displays blog posts or a static page. The front page template takes precedence over the "Home" template.' ),
     121            'description' => __( 'Displays as the site\'s home page.' ),
    122122        ),
    123123        'singular'       => array(
    124124            'title'       => _x( 'Singular', 'Template name' ),
    125             '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.' ),
     125            'description' => __( 'Displays a single post or page.' ),
    126126        ),
    127127        'single'         => array(
    128128            'title'       => _x( 'Single Post', 'Template name' ),
    129             'description' => __( 'Template used to display a single blog post.' ),
     129            'description' => __( 'Displays a single post.' ),
    130130        ),
    131131        'page'           => array(
    132132            'title'       => _x( 'Page', 'Template name' ),
    133             'description' => __( 'Template used to display individual pages.' ),
     133            'description' => __( 'Displays a single page.' ),
    134134        ),
    135135        'archive'        => array(
    136136            'title'       => _x( 'Archive', 'Template name' ),
    137             'description' => __( 'The archive template displays multiple entries at once. It is used as a fallback for the Category, Author, and Date templates, which take precedence when they are available.' ),
     137            'description' => __( 'Displays post categories, tags, and other archives.' ),
    138138        ),
    139139        'author'         => array(
    140140            'title'       => _x( 'Author', 'Template name' ),
    141             'description' => __( 'Archive template used to display a list of posts from a single author.' ),
     141            'description' => __( 'Displays latest posts written by a single author.' ),
    142142        ),
    143143        'category'       => array(
    144144            'title'       => _x( 'Category', 'Template name' ),
    145             'description' => __( 'Archive template used to display a list of posts from the same category.' ),
     145            'description' => __( 'Displays latest posts in single post category.' ),
    146146        ),
    147147        'taxonomy'       => array(
    148148            'title'       => _x( 'Taxonomy', 'Template name' ),
    149             'description' => __( 'Archive template used to display a list of posts from the same taxonomy.' ),
     149            'description' => __( 'Displays latest posts from a single post taxonomy.' ),
    150150        ),
    151151        'date'           => array(
    152152            'title'       => _x( 'Date', 'Template name' ),
    153             'description' => __( 'Archive template used to display a list of posts from a specific date.' ),
     153            'description' => __( 'Displays posts from a specific date.' ),
    154154        ),
    155155        'tag'            => array(
    156156            'title'       => _x( 'Tag', 'Template name' ),
    157             'description' => __( 'Archive template used to display a list of posts with a given tag.' ),
     157            'description' => __( 'Displays latest posts with single post tag.' ),
    158158        ),
    159159        'attachment'     => array(
    160160            'title'       => __( 'Media' ),
    161             'description' => __( 'Template used to display individual media items or attachments.' ),
     161            'description' => __( 'Displays individual media items or attachments.' ),
    162162        ),
    163163        'search'         => array(
     
    167167        'privacy-policy' => array(
    168168            'title'       => __( 'Privacy Policy' ),
    169             'description' => '',
     169            'description' => __( 'Displays the privacy policy page.' ),
    170170        ),
    171171        '404'            => array(
    172172            'title'       => _x( '404', 'Template name' ),
    173             'description' => __( 'Template shown when no content is found.' ),
     173            'description' => __( 'Displays when no content is found.' ),
    174174        ),
    175175    );
  • trunk/tests/phpunit/tests/block-template-utils.php

    r52314 r52331  
    129129        $this->assertSame( 'theme', $template->source );
    130130        $this->assertSame( 'Single Post', $template->title );
    131         $this->assertSame( 'Template used to display a single blog post.', $template->description );
     131        $this->assertSame( 'Displays a single post.', $template->description );
    132132        $this->assertSame( 'wp_template', $template->type );
    133133
Note: See TracChangeset for help on using the changeset viewer.