Make WordPress Core

Changeset 44215


Ignore:
Timestamp:
12/16/2018 01:24:01 AM (5 years ago)
Author:
jeremyfelt
Message:

Blocks: Include necessary labels for the 'wp_block' post type.

Merges [43849] from the 5.0 branch to trunk.

Props danielbachhuber.
See #45098.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-admin/edit.php

    r44146 r44215  
    312312);
    313313
    314 $bulk_messages         = array();
    315 $bulk_messages['post'] = array(
     314$bulk_messages             = array();
     315$bulk_messages['post']     = array(
    316316    'updated'   => _n( '%s post updated.', '%s posts updated.', $bulk_counts['updated'] ),
    317317    'locked'    => ( 1 == $bulk_counts['locked'] ) ? __( '1 post not updated, somebody is editing it.' ) :
     
    321321    'untrashed' => _n( '%s post restored from the Trash.', '%s posts restored from the Trash.', $bulk_counts['untrashed'] ),
    322322);
    323 $bulk_messages['page'] = array(
     323$bulk_messages['page']     = array(
    324324    'updated'   => _n( '%s page updated.', '%s pages updated.', $bulk_counts['updated'] ),
    325325    'locked'    => ( 1 == $bulk_counts['locked'] ) ? __( '1 page not updated, somebody is editing it.' ) :
     
    328328    'trashed'   => _n( '%s page moved to the Trash.', '%s pages moved to the Trash.', $bulk_counts['trashed'] ),
    329329    'untrashed' => _n( '%s page restored from the Trash.', '%s pages restored from the Trash.', $bulk_counts['untrashed'] ),
     330);
     331$bulk_messages['wp_block'] = array(
     332    'updated'   => _n( '%s block updated.', '%s blocks updated.', $bulk_counts['updated'] ),
     333    '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'] ),
     334    'deleted'   => _n( '%s block permanently deleted.', '%s blocks permanently deleted.', $bulk_counts['deleted'] ),
     335    'trashed'   => _n( '%s block moved to the Trash.', '%s blocks moved to the Trash.', $bulk_counts['trashed'] ),
     336    'untrashed' => _n( '%s block restored from the Trash.', '%s blocks restored from the Trash.', $bulk_counts['untrashed'] ),
    330337);
    331338
  • trunk/src/wp-includes/post.php

    r44166 r44215  
    257257        array(
    258258            'labels'                => array(
    259                 'name'          => __( 'Blocks' ),
    260                 'singular_name' => __( 'Block' ),
    261                 'search_items'  => __( 'Search Blocks' ),
     259                'name'                     => _x( 'Blocks', 'post type general name' ),
     260                'singular_name'            => _x( 'Block', 'post type singular name' ),
     261                'menu_name'                => _x( 'Blocks', 'admin menu' ),
     262                'name_admin_bar'           => _x( 'Block', 'add new on admin bar' ),
     263                'add_new'                  => _x( 'Add New', 'Block' ),
     264                'add_new_item'             => __( 'Add New Block' ),
     265                'new_item'                 => __( 'New Block' ),
     266                'edit_item'                => __( 'Edit Block' ),
     267                'view_item'                => __( 'View Block' ),
     268                'all_items'                => __( 'All Blocks' ),
     269                'search_items'             => __( 'Search Blocks' ),
     270                'not_found'                => __( 'No blocks found.' ),
     271                'not_found_in_trash'       => __( 'No blocks found in Trash.' ),
     272                'filter_items_list'        => __( 'Filter blocks list' ),
     273                'items_list_navigation'    => __( 'Blocks list navigation' ),
     274                'items_list'               => __( 'Blocks list' ),
     275                'item_published'           => __( 'Block published.' ),
     276                'item_published_privately' => __( 'Block published privately.' ),
     277                'item_reverted_to_draft'   => __( 'Block reverted to draft.' ),
     278                'item_scheduled'           => __( 'Block scheduled.' ),
     279                'item_updated'             => __( 'Block updated.' ),
    262280            ),
    263281            'public'                => false,
Note: See TracChangeset for help on using the changeset viewer.