mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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
This commit is contained in:
@@ -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' ),
|
||||
|
||||
Reference in New Issue
Block a user