From cb5a19f8c1ec60d3a5d56a54314f683568221acb Mon Sep 17 00:00:00 2001 From: SergeyBiryukov <SergeyBiryukov@602fd350-edb4-49c9-b593-d223f7449a82> Date: Tue, 25 May 2021 22:48:02 +0000 Subject: [PATCH] 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 --- src/wp-includes/post.php | 5 ----- 1 file changed, 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' ),