Make WordPress Core

Ticket #15576: 15576.2.patch

File 15576.2.patch, 2.3 KB (added by SergeyBiryukov, 15 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

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

     
    11851185                'not_found' => array( __('No posts found.'), __('No pages found.') ),
    11861186                'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ),
    11871187                'parent_item_colon' => array( null, __('Parent Page:') ),
     1188                'per_page' => array( _x('Posts', 'posts per page (screen options)'), _x('Pages', 'pages per page (screen options)') ),
    11881189                'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) )
    11891190        );
    11901191        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
  • wp-includes/taxonomy.php

     
    411411                'separate_items_with_commas' => array( __( 'Separate tags with commas' ), null ),
    412412                'add_or_remove_items' => array( __( 'Add or remove tags' ), null ),
    413413                'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ),
     414                'per_page' => array( _x('Post Tags', 'tags per page (screen options)'), _x('Categories', 'categories per page (screen options)') ),
    414415        );
    415416        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
    416417