Make WordPress Core

Ticket #15576: 15576.3.patch

File 15576.3.patch, 4.0 KB (added by SergeyBiryukov, 14 years ago)
  • wp-admin/edit-tags.php

     
    4242        $submenu_file = "edit-tags.php?taxonomy=$taxonomy";
    4343}
    4444
    45 add_screen_option( 'per_page', array('label' => $title, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page') );
     45add_screen_option( 'per_page', array( 'label' => $tax->labels->per_page, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) );
    4646
    4747switch ( $wp_list_table->current_action() ) {
    4848
  • wp-admin/edit.php

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

     
    11721172 * - parent_item_colon - This string isn't used on non-hierarchical types. In hierarchical ones the default is Parent Page:
    11731173 * - all_items - String for the submenu. Default is All Posts/All Pages
    11741174 * - menu_name - Default is the same as <code>name</code>
     1175 * - per_page - Name for use in Screen Options. Default is the same as <code>name</code>
    11751176 *
    11761177 * Above, the first default value is for non-hierarchical post types (like posts) and the second one is for hierarchical post types (like pages).
    11771178 *
     
    11921193                'not_found' => array( __('No posts found.'), __('No pages found.') ),
    11931194                'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ),
    11941195                'parent_item_colon' => array( null, __('Parent Page:') ),
     1196                'per_page' => array( _x( 'Posts', 'posts per page (screen options)' ), _x( 'Pages', 'pages per page (screen options)' ) ),
    11951197                'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) )
    11961198        );
    11971199        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
     
    12181220        if ( !isset( $object->labels['menu_name'] ) && isset( $object->labels['name'] ) )
    12191221                $object->labels['menu_name'] = $object->labels['name'];
    12201222
     1223        if ( !isset( $object->labels['per_page'] ) && isset( $object->labels['name'] ) )
     1224                $object->labels['per_page'] = $object->labels['name'];
     1225
    12211226        if ( !isset( $object->labels['all_items'] ) && isset( $object->labels['menu_name'] ) )
    12221227                $object->labels['all_items'] = $object->labels['menu_name'];
    12231228
  • wp-includes/taxonomy.php

     
    385385 * - separate_items_with_commas - This string isn't used on hierarchical taxonomies. Default is "Separate tags with commas," used in the meta box.
    386386 * - add_or_remove_items - This string isn't used on hierarchical taxonomies. Default is "Add or remove tags," used in the meta box when JavaScript is disabled.
    387387 * - choose_from_most_used - This string isn't used on hierarchical taxonomies. Default is "Choose from the most used tags," used in the meta box.
     388 * - per_page - Name for use in Screen Options. Default is the same as <code>name</code>
    388389 *
    389390 * Above, the first default value is for non-hierarchical taxonomies (like tags) and the second one is for hierarchical taxonomies (like categories.)
    390391 *
     
    413414                'separate_items_with_commas' => array( __( 'Separate tags with commas' ), null ),
    414415                'add_or_remove_items' => array( __( 'Add or remove tags' ), null ),
    415416                'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ),
     417                'per_page' => array( _x( 'Tags', 'tags per page (screen options)' ), _x( 'Categories', 'categories per page (screen options)' ) ),
    416418        );
    417419        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
    418420