Editor: Update the post type labels for the reusable blocks post type.

Previously, the labels for the reusable block post type were just “block”. The document settings tab in the block editor has been changed to use the post type label specified instead to be more specific. Changing the reusable block post type labels to “reusable block” prevents two “Block” tabs from showing in the editor.

Props desaiuditd, peterwilsoncc.
Fixes #50755.
Built from https://develop.svn.wordpress.org/trunk@48829


git-svn-id: http://core.svn.wordpress.org/trunk@48591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2020-08-19 13:40:12 +00:00
parent 2326c8196d
commit 4ad0086a2a
2 changed files with 22 additions and 22 deletions

View File

@ -259,27 +259,27 @@ function create_initial_post_types() {
'wp_block', 'wp_block',
array( array(
'labels' => array( 'labels' => array(
'name' => _x( 'Blocks', 'post type general name' ), 'name' => _x( 'Reusable Blocks', 'post type general name' ),
'singular_name' => _x( 'Block', 'post type singular name' ), 'singular_name' => _x( 'Reusable Block', 'post type singular name' ),
'menu_name' => _x( 'Blocks', 'admin menu' ), 'menu_name' => _x( 'Reusable Blocks', 'admin menu' ),
'name_admin_bar' => _x( 'Block', 'add new on admin bar' ), 'name_admin_bar' => _x( 'Reusable Block', 'add new on admin bar' ),
'add_new' => _x( 'Add New', 'Block' ), 'add_new' => _x( 'Add New', 'Reusable Block' ),
'add_new_item' => __( 'Add New Block' ), 'add_new_item' => __( 'Add New Reusable Block' ),
'new_item' => __( 'New Block' ), 'new_item' => __( 'New Reusable Block' ),
'edit_item' => __( 'Edit Block' ), 'edit_item' => __( 'Edit Reusable Block' ),
'view_item' => __( 'View Block' ), 'view_item' => __( 'View Reusable Block' ),
'all_items' => __( 'All Blocks' ), 'all_items' => __( 'All Reusable Blocks' ),
'search_items' => __( 'Search Blocks' ), 'search_items' => __( 'Search Reusable Blocks' ),
'not_found' => __( 'No blocks found.' ), 'not_found' => __( 'No reusable blocks found.' ),
'not_found_in_trash' => __( 'No blocks found in Trash.' ), 'not_found_in_trash' => __( 'No reusable blocks found in Trash.' ),
'filter_items_list' => __( 'Filter blocks list' ), 'filter_items_list' => __( 'Filter reusable blocks list' ),
'items_list_navigation' => __( 'Blocks list navigation' ), 'items_list_navigation' => __( 'Reusable Blocks list navigation' ),
'items_list' => __( 'Blocks list' ), 'items_list' => __( 'Reusable Blocks list' ),
'item_published' => __( 'Block published.' ), 'item_published' => __( 'Reusable Block published.' ),
'item_published_privately' => __( 'Block published privately.' ), 'item_published_privately' => __( 'Reusable Block published privately.' ),
'item_reverted_to_draft' => __( 'Block reverted to draft.' ), 'item_reverted_to_draft' => __( 'Reusable Block reverted to draft.' ),
'item_scheduled' => __( 'Block scheduled.' ), 'item_scheduled' => __( 'Reusable Block scheduled.' ),
'item_updated' => __( 'Block updated.' ), 'item_updated' => __( 'Reusable Block updated.' ),
), ),
'public' => false, 'public' => false,
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */ '_builtin' => true, /* internal use only. don't use this when registering your own post type. */

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.6-alpha-48827'; $wp_version = '5.6-alpha-48829';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.