From b277797add86233167bdb923059d09c6b47b1bdc Mon Sep 17 00:00:00 2001 From: danielbachhuber Date: Wed, 31 Oct 2018 18:16:44 +0000 Subject: [PATCH] Blocks: Include necessary labels for the 'wp_block' post type. See #45098 Built from https://develop.svn.wordpress.org/branches/5.0@43849 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43678 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit.php | 7 +++++++ wp-includes/post.php | 24 +++++++++++++++++++++--- wp-includes/version.php | 2 +- 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/wp-admin/edit.php b/wp-admin/edit.php index d55c71c0e9..be61db1502 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -290,6 +290,13 @@ $bulk_messages['page'] = array( 'trashed' => _n( '%s page moved to the Trash.', '%s pages moved to the Trash.', $bulk_counts['trashed'] ), 'untrashed' => _n( '%s page restored from the Trash.', '%s pages restored from the Trash.', $bulk_counts['untrashed'] ), ); +$bulk_messages['wp_block'] = array( + 'updated' => _n( '%s block updated.', '%s blocks updated.', $bulk_counts['updated'] ), + 'locked' => ( 1 == $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) : _n( '%s block not updated, somebody is editing it.', '%s blocks not updated, somebody is editing them.', $bulk_counts['locked'] ), + 'deleted' => _n( '%s block permanently deleted.', '%s blocks permanently deleted.', $bulk_counts['deleted'] ), + 'trashed' => _n( '%s block moved to the Trash.', '%s blocks moved to the Trash.', $bulk_counts['trashed'] ), + 'untrashed' => _n( '%s block restored from the Trash.', '%s blocks restored from the Trash.', $bulk_counts['untrashed'] ), +); /** * Filters the bulk action updated messages. diff --git a/wp-includes/post.php b/wp-includes/post.php index 9f2a404b30..c9d1edbe67 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -229,9 +229,27 @@ function create_initial_post_types() { 'wp_block', array( 'labels' => array( - 'name' => __( 'Blocks' ), - 'singular_name' => __( 'Block' ), - 'search_items' => __( 'Search Blocks' ), + 'name' => _x( 'Blocks', 'post type general name' ), + 'singular_name' => _x( 'Block', 'post type singular name' ), + 'menu_name' => _x( 'Blocks', 'admin menu' ), + 'name_admin_bar' => _x( 'Block', 'add new on admin bar' ), + 'add_new' => _x( 'Add New', 'Block' ), + 'add_new_item' => __( 'Add New Block' ), + 'new_item' => __( 'New Block' ), + 'edit_item' => __( 'Edit Block' ), + 'view_item' => __( 'View Block' ), + 'all_items' => __( 'All Blocks' ), + 'search_items' => __( 'Search Blocks' ), + 'not_found' => __( 'No blocks found.' ), + 'not_found_in_trash' => __( 'No blocks found in Trash.' ), + 'filter_items_list' => __( 'Filter blocks list' ), + 'items_list_navigation' => __( 'Blocks list navigation' ), + 'items_list' => __( 'Blocks list' ), + 'item_published' => __( 'Block published.' ), + 'item_published_privately' => __( 'Block published privately.' ), + 'item_reverted_to_draft' => __( 'Block reverted to draft.' ), + 'item_scheduled' => __( 'Block scheduled.' ), + 'item_updated' => __( 'Block updated.' ), ), 'public' => false, '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index e902c97407..92c5ea4666 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-beta2-43848'; +$wp_version = '5.0-beta2-43849'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.