Posts, Post Types: Remove some unused strings from built-in post type declarations.
The `customize_changeset`, `wp_block`, and `wp_template` post types are not displayed in the admin menu or in the admin bar. If they do get added, the labels can just fall back to `name` and `singular_name` until separate strings are required for more flexible translations. Follow-up to [38810], [44146], [51003]. See #53176. Built from https://develop.svn.wordpress.org/trunk@51015 git-svn-id: http://core.svn.wordpress.org/trunk@50624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
74eec0c180
commit
b8ee0a22a5
|
@ -177,8 +177,6 @@ function create_initial_post_types() {
|
|||
'labels' => array(
|
||||
'name' => _x( 'Changesets', 'post type general name' ),
|
||||
'singular_name' => _x( 'Changeset', 'post type singular name' ),
|
||||
'menu_name' => _x( 'Changesets', 'admin menu' ),
|
||||
'name_admin_bar' => _x( 'Changeset', 'add new on admin bar' ),
|
||||
'add_new' => _x( 'Add New', 'Customize Changeset' ),
|
||||
'add_new_item' => __( 'Add New Changeset' ),
|
||||
'new_item' => __( 'New Changeset' ),
|
||||
|
@ -261,8 +259,6 @@ function create_initial_post_types() {
|
|||
'labels' => array(
|
||||
'name' => _x( 'Reusable blocks', 'post type general name' ),
|
||||
'singular_name' => _x( 'Reusable block', 'post type singular name' ),
|
||||
'menu_name' => _x( 'Reusable blocks', 'admin menu' ),
|
||||
'name_admin_bar' => _x( 'Reusable block', 'add new on admin bar' ),
|
||||
'add_new' => _x( 'Add New', 'Reusable block' ),
|
||||
'add_new_item' => __( 'Add new Reusable block' ),
|
||||
'new_item' => __( 'New Reusable block' ),
|
||||
|
@ -316,7 +312,6 @@ function create_initial_post_types() {
|
|||
'labels' => array(
|
||||
'name' => __( 'Templates' ),
|
||||
'singular_name' => __( 'Template' ),
|
||||
'menu_name' => _x( 'Templates', 'Admin Menu text' ),
|
||||
'add_new' => _x( 'Add New', 'Template' ),
|
||||
'add_new_item' => __( 'Add New Template' ),
|
||||
'new_item' => __( 'New Template' ),
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.8-alpha-51014';
|
||||
$wp_version = '5.8-alpha-51015';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue