Make WordPress Core


Ignore:
Timestamp:
12/16/2018 01:24:01 AM (6 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:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • 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.