diff options
author | SergeyBiryukov <SergeyBiryukov@602fd350-edb4-49c9-b593-d223f7449a82> | 2021-05-25 22:48:02 +0000 |
---|---|---|
committer | SergeyBiryukov <SergeyBiryukov@602fd350-edb4-49c9-b593-d223f7449a82> | 2021-05-25 22:48:02 +0000 |
commit | cb5a19f8c1ec60d3a5d56a54314f683568221acb (patch) | |
tree | 7859f7ccfae5da71bbd9c2c7ee27096f01782628 | |
parent | 304715ae995d4d76c85f890dc37bb765d5ae6d8f (diff) | |
download | wordpress-cb5a19f8c1ec60d3a5d56a54314f683568221acb.tar.gz wordpress-cb5a19f8c1ec60d3a5d56a54314f683568221acb.zip |
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@51015 602fd350-edb4-49c9-b593-d223f7449a82
-rw-r--r-- | src/wp-includes/post.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 686adcfc65..df0ca10695 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -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' ), |