Make WordPress Core


Ignore:
Timestamp:
12/16/2018 01:24:01 AM (7 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-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
Note: See TracChangeset for help on using the changeset viewer.