Changeset 56145
- Timestamp:
- 07/06/2023 03:02:57 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r55992 r56145 119 119 ), 120 120 'home' => array( 121 'title' => _x( ' Home', 'Template name' ),122 'description' => __( 'Displays the latest posts as either the site homepage or a custom page defined under reading settings. If it exists, the Front Page template overrides this template when posts are shown on the frontpage.' ),121 'title' => _x( 'Blog Home', 'Template name' ), 122 'description' => __( 'Displays the latest posts as either the site homepage or as the "Posts page" as defined under reading settings. If it exists, the Front Page template overrides this template when posts are shown on the homepage.' ), 123 123 ), 124 124 'front-page' => array( 125 125 'title' => _x( 'Front Page', 'Template name' ), 126 'description' => __( 'Displays your site\'s frontpage, whether it is set to display latest posts or a static page. The Front Page template takes precedence over all templates.' ),126 'description' => __( 'Displays your site\'s homepage, whether it is set to display latest posts or a static page. The Front Page template takes precedence over all templates.' ), 127 127 ), 128 128 'singular' => array( 129 'title' => _x( 'Sing ular', 'Template name' ),129 'title' => _x( 'Single Entries', 'Template name' ), 130 130 'description' => __( 'Displays any single entry, such as a post or a page. This template will serve as a fallback when a more specific template (e.g., Single Post, Page, or Attachment) cannot be found.' ), 131 131 ), 132 132 'single' => array( 133 'title' => _x( 'Single ', 'Template name' ),133 'title' => _x( 'Single Posts', 'Template name' ), 134 134 'description' => __( 'Displays single posts on your website unless a custom template has been applied to that post or a dedicated template exists.' ), 135 135 ), 136 136 'page' => array( 137 'title' => _x( 'Page ', 'Template name' ),137 'title' => _x( 'Pages', 'Template name' ), 138 138 'description' => __( 'Display all static pages unless a custom template has been applied or a dedicated template exists.' ), 139 139 ), 140 140 'archive' => array( 141 'title' => _x( 'A rchive', 'Template name' ),141 'title' => _x( 'All Archives', 'Template name' ), 142 142 'description' => __( 'Displays any archive, including posts by a single author, category, tag, taxonomy, custom post type, and date. This template will serve as a fallback when more specific templates (e.g., Category or Tag) cannot be found.' ), 143 143 ), 144 144 'author' => array( 145 'title' => _x( 'Author ', 'Template name' ),146 'description' => __( 'Displays a single author\'s post archive. This template will serve as a fallback when a more specific template (e.g., Author: Admin) cannot be found.' ),145 'title' => _x( 'Author Archives', 'Template name' ), 146 'description' => __( 'Displays a single author\'s post archive. This template will serve as a fallback when a more a specific template (e.g., Author: Admin) cannot be found.' ), 147 147 ), 148 148 'category' => array( 149 'title' => _x( 'Category ', 'Template name' ),150 'description' => __( 'Displays a post category archive. This template will serve as a fallback when amore specific template (e.g., Category: Recipes) cannot be found.' ),149 'title' => _x( 'Category Archives', 'Template name' ), 150 'description' => __( 'Displays a post category archive. This template will serve as a fallback when more specific template (e.g., Category: Recipes) cannot be found.' ), 151 151 ), 152 152 'taxonomy' => array( … … 155 155 ), 156 156 'date' => array( 157 'title' => _x( 'Date ', 'Template name' ),157 'title' => _x( 'Date Archives', 'Template name' ), 158 158 'description' => __( 'Displays a post archive when a specific date is visited (e.g., example.com/2023/).' ), 159 159 ), 160 160 'tag' => array( 161 'title' => _x( 'Tag ', 'Template name' ),162 'description' => __( 'Displays a post tag archive. This template will serve as a fallback when amore specific template (e.g., Tag: Pizza) cannot be found.' ),161 'title' => _x( 'Tag Archives', 'Template name' ), 162 'description' => __( 'Displays a post tag archive. This template will serve as a fallback when more specific template (e.g., Tag: Pizza) cannot be found.' ), 163 163 ), 164 164 'attachment' => array( 165 'title' => __( ' Media' ),165 'title' => __( 'Attachment Pages' ), 166 166 'description' => __( 'Displays when a visitor views the dedicated page that exists for any media attachment.' ), 167 167 ), 168 168 'search' => array( 169 'title' => _x( 'Search ', 'Template name' ),169 'title' => _x( 'Search Results', 'Template name' ), 170 170 'description' => __( 'Displays when a visitor performs a search on your website.' ), 171 171 ), … … 175 175 ), 176 176 '404' => array( 177 'title' => _x( ' 404', 'Template name' ),177 'title' => _x( 'Page: 404', 'Template name' ), 178 178 'description' => __( 'Displays when a visitor views a non-existent page, such as a dead link or a mistyped URL.' ), 179 179 ), -
trunk/tests/phpunit/tests/block-template-utils.php
r55993 r56145 136 136 $this->assertSame( 'publish', $template->status ); 137 137 $this->assertSame( 'theme', $template->source ); 138 $this->assertSame( 'Single ', $template->title );138 $this->assertSame( 'Single Posts', $template->title ); 139 139 $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 ); 140 140 $this->assertSame( 'wp_template', $template->type );
Note: See TracChangeset
for help on using the changeset viewer.