WordPress.org

Make WordPress Core

Ticket #16406: 16406.patch

File 16406.patch, 1.4 KB (added by SergeyBiryukov, 3 years ago)
  • wp-includes/admin-bar.php

     
    189189                if ( true !== $ptype_obj->show_in_menu || ! current_user_can( $ptype_obj->cap->edit_posts ) ) 
    190190                        continue; 
    191191 
    192                 $actions[ 'post-new.php?post_type=' . $ptype_obj->name ] = array( $ptype_obj->labels->singular_name, $ptype_obj->cap->edit_posts, 'new-' . $ptype_obj->name ); 
     192                $actions[ 'post-new.php?post_type=' . $ptype_obj->name ] = array( $ptype_obj->labels->admin_bar_add_new_item, $ptype_obj->cap->edit_posts, 'new-' . $ptype_obj->name ); 
    193193        } 
    194194 
    195195        if ( empty( $actions ) ) 
  • wp-includes/post.php

     
    11511151                'singular_name' => array( _x('Post', 'post type singular name'), _x('Page', 'post type singular name') ), 
    11521152                'add_new' => array( _x('Add New', 'post'), _x('Add New', 'page') ), 
    11531153                'add_new_item' => array( __('Add New Post'), __('Add New Page') ), 
     1154                'admin_bar_add_new_item' => array( _x('Post', 'post type (Admin Bar)'), _x('Page', 'post type (Admin Bar)') ), 
    11541155                'edit_item' => array( __('Edit Post'), __('Edit Page') ), 
    11551156                'new_item' => array( __('New Post'), __('New Page') ), 
    11561157                'view_item' => array( __('View Post'), __('View Page') ),