Make WordPress Core

Ticket #45101: 45101.diff

File 45101.diff, 1.5 KB (added by earnjam, 6 years ago)
  • src/wp-includes/post.php

    diff --git src/wp-includes/post.php src/wp-includes/post.php
    index 10f2129c53..9a1609ec51 100644
    function _post_type_meta_capabilities( $capabilities = null ) { 
    14331433 *              `items_list_navigation`, and `items_list` labels.
    14341434 * @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object.
    14351435 * @since 4.7.0 Added the `view_items` and `attributes` labels.
     1436 * @since 5.0.0 Added the `item_published`, `item_published_privately`, `item_reverted_to_draft`,
     1437 *              `item_scheduled`, and `item_updated` labels.
    14361438 *
    14371439 * @access private
    14381440 *
    function get_post_type_labels( $post_type_object ) { 
    14651467                'filter_items_list' => array( __( 'Filter posts list' ), __( 'Filter pages list' ) ),
    14661468                'items_list_navigation' => array( __( 'Posts list navigation' ), __( 'Pages list navigation' ) ),
    14671469                'items_list' => array( __( 'Posts list' ), __( 'Pages list' ) ),
     1470                'item_published' => array( __( 'Post published.' ), __( 'Page published.' ) ),
     1471                'item_published_privately' => array( __( 'Post published privately.' ), __( 'Page published privately.' ) ),
     1472                'item_reverted_to_draft' => array( __( 'Post reverted to draft.' ), __( 'Page reverted to draft.' ) ),
     1473                'item_scheduled' => array( __( 'Post scheduled.' ), __( 'Page scheduled.' ) ),
     1474                'item_updated' => array( __( 'Post updated.' ), __( 'Page updated.' ) ),
    14681475        );
    14691476        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
    14701477