Ticket #15576: 15576.3.patch
| File 15576.3.patch, 4.0 KB (added by , 14 years ago) |
|---|
-
wp-admin/edit-tags.php
42 42 $submenu_file = "edit-tags.php?taxonomy=$taxonomy"; 43 43 } 44 44 45 add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page') );45 add_screen_option( 'per_page', array( 'label' => $tax->labels->per_page, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) ); 46 46 47 47 switch ( $wp_list_table->current_action() ) { 48 48 -
wp-admin/edit.php
186 186 ); 187 187 } 188 188 189 add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20) );189 add_screen_option( 'per_page', array( 'label' => $post_type_object->labels->per_page, 'default' => 20 ) ); 190 190 191 191 require_once('./admin-header.php'); 192 192 ?> -
wp-includes/post.php
1172 1172 * - parent_item_colon - This string isn't used on non-hierarchical types. In hierarchical ones the default is Parent Page: 1173 1173 * - all_items - String for the submenu. Default is All Posts/All Pages 1174 1174 * - 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> 1175 1176 * 1176 1177 * Above, the first default value is for non-hierarchical post types (like posts) and the second one is for hierarchical post types (like pages). 1177 1178 * … … 1192 1193 'not_found' => array( __('No posts found.'), __('No pages found.') ), 1193 1194 'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ), 1194 1195 '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)' ) ), 1195 1197 'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) ) 1196 1198 ); 1197 1199 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; … … 1218 1220 if ( !isset( $object->labels['menu_name'] ) && isset( $object->labels['name'] ) ) 1219 1221 $object->labels['menu_name'] = $object->labels['name']; 1220 1222 1223 if ( !isset( $object->labels['per_page'] ) && isset( $object->labels['name'] ) ) 1224 $object->labels['per_page'] = $object->labels['name']; 1225 1221 1226 if ( !isset( $object->labels['all_items'] ) && isset( $object->labels['menu_name'] ) ) 1222 1227 $object->labels['all_items'] = $object->labels['menu_name']; 1223 1228 -
wp-includes/taxonomy.php
385 385 * - separate_items_with_commas - This string isn't used on hierarchical taxonomies. Default is "Separate tags with commas," used in the meta box. 386 386 * - 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. 387 387 * - 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> 388 389 * 389 390 * Above, the first default value is for non-hierarchical taxonomies (like tags) and the second one is for hierarchical taxonomies (like categories.) 390 391 * … … 413 414 'separate_items_with_commas' => array( __( 'Separate tags with commas' ), null ), 414 415 'add_or_remove_items' => array( __( 'Add or remove tags' ), null ), 415 416 '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)' ) ), 416 418 ); 417 419 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; 418 420