Changeset 52331
- Timestamp:
- 12/07/2021 12:10:36 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r52324 r52331 111 111 'index' => array( 112 112 '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.' ), 114 114 ), 115 115 'home' => array( 116 116 '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.' ), 118 118 ), 119 119 'front-page' => array( 120 120 '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.' ), 122 122 ), 123 123 'singular' => array( 124 124 '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.' ), 126 126 ), 127 127 'single' => array( 128 128 'title' => _x( 'Single Post', 'Template name' ), 129 'description' => __( ' Template used to display a single blogpost.' ),129 'description' => __( 'Displays a single post.' ), 130 130 ), 131 131 'page' => array( 132 132 'title' => _x( 'Page', 'Template name' ), 133 'description' => __( ' Template used to display individual pages.' ),133 'description' => __( 'Displays a single page.' ), 134 134 ), 135 135 'archive' => array( 136 136 '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.' ), 138 138 ), 139 139 'author' => array( 140 140 'title' => _x( 'Author', 'Template name' ), 141 'description' => __( ' Archive template used to display a list of posts froma single author.' ),141 'description' => __( 'Displays latest posts written by a single author.' ), 142 142 ), 143 143 'category' => array( 144 144 'title' => _x( 'Category', 'Template name' ), 145 'description' => __( ' Archive template used to display a list of posts from the samecategory.' ),145 'description' => __( 'Displays latest posts in single post category.' ), 146 146 ), 147 147 'taxonomy' => array( 148 148 'title' => _x( 'Taxonomy', 'Template name' ), 149 'description' => __( ' Archive template used to display a list of posts from the sametaxonomy.' ),149 'description' => __( 'Displays latest posts from a single post taxonomy.' ), 150 150 ), 151 151 'date' => array( 152 152 'title' => _x( 'Date', 'Template name' ), 153 'description' => __( ' Archive template used to display a list ofposts from a specific date.' ),153 'description' => __( 'Displays posts from a specific date.' ), 154 154 ), 155 155 'tag' => array( 156 156 'title' => _x( 'Tag', 'Template name' ), 157 'description' => __( ' Archive template used to display a list of posts with a giventag.' ),157 'description' => __( 'Displays latest posts with single post tag.' ), 158 158 ), 159 159 'attachment' => array( 160 160 'title' => __( 'Media' ), 161 'description' => __( ' Template used to displayindividual media items or attachments.' ),161 'description' => __( 'Displays individual media items or attachments.' ), 162 162 ), 163 163 'search' => array( … … 167 167 'privacy-policy' => array( 168 168 'title' => __( 'Privacy Policy' ), 169 'description' => '',169 'description' => __( 'Displays the privacy policy page.' ), 170 170 ), 171 171 '404' => array( 172 172 'title' => _x( '404', 'Template name' ), 173 'description' => __( ' Template shownwhen no content is found.' ),173 'description' => __( 'Displays when no content is found.' ), 174 174 ), 175 175 ); -
trunk/tests/phpunit/tests/block-template-utils.php
r52314 r52331 129 129 $this->assertSame( 'theme', $template->source ); 130 130 $this->assertSame( 'Single Post', $template->title ); 131 $this->assertSame( ' Template used to display a single blogpost.', $template->description );131 $this->assertSame( 'Displays a single post.', $template->description ); 132 132 $this->assertSame( 'wp_template', $template->type ); 133 133
Note: See TracChangeset
for help on using the changeset viewer.