Ticket #15576: 15576.patch

File 15576.patch, 2.4 KB (added by SergeyBiryukov, 2 years ago)
  • wp-admin/edit-tags.php

     
    2828        $submenu_file = "edit-tags.php?taxonomy=$taxonomy"; 
    2929} 
    3030 
    31 add_screen_option( 'per_page', array('label' => $title, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page') ); 
     31add_screen_option( 'per_page', array('label' => $tax->labels->per_page, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page') ); 
    3232 
    3333switch ( $wp_list_table->current_action() ) { 
    3434 
  • wp-admin/edit.php

     
    184184        ); 
    185185} 
    186186 
    187 add_screen_option( 'per_page', array('label' => $title, 'default' => 20) ); 
     187add_screen_option( 'per_page', array('label' => $post_type_object->labels->per_page, 'default' => 20) ); 
    188188 
    189189require_once('./admin-header.php'); 
    190190?> 
  • wp-includes/post.php

     
    11581158                'not_found' => array( __('No posts found.'), __('No pages found.') ), 
    11591159                'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ), 
    11601160                'parent_item_colon' => array( null, __('Parent Page:') ), 
     1161                'per_page' => array( _x('Posts', 'posts per page (screen options)'), _x('Pages', 'pages per page (screen options)') ), 
    11611162        ); 
    11621163        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; 
    11631164        return _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults ); 
  • wp-includes/taxonomy.php

     
    408408                'separate_items_with_commas' => array( __( 'Separate tags with commas' ), null ), 
    409409                'add_or_remove_items' => array( __( 'Add or remove tags' ), null ), 
    410410                'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ), 
     411                'per_page' => array( _x('Post Tags', 'tags per page (screen options)'), _x('Categories', 'categories per page (screen options)') ), 
    411412        ); 
    412413        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; 
    413414