Changeset 21322
- Timestamp:
- 07/25/2012 04:13:13 PM (12 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tags.php
r21311 r21322 37 37 } 38 38 39 add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page') );39 add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) ); 40 40 41 41 switch ( $wp_list_table->current_action() ) { -
trunk/wp-admin/edit.php
r20630 r21322 216 216 } 217 217 218 add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20) );218 add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20, 'option' => 'edit_' . $post_type . '_per_page' ) ); 219 219 220 220 require_once('./admin-header.php'); -
trunk/wp-admin/includes/misc.php
r20417 r21322 329 329 return; 330 330 331 $option = str_replace('-', '_', $option);332 333 331 $map_option = $option; 334 332 $type = str_replace('edit_', '', $map_option); 335 333 $type = str_replace('_per_page', '', $type); 336 if ( in_array($type, get_post_types()) ) 334 if ( in_array( $type, get_taxonomies() ) ) 335 $map_option = 'edit_tags_per_page'; 336 elseif ( in_array( $type, get_post_types() ) ) 337 337 $map_option = 'edit_per_page'; 338 if ( in_array( $type, get_taxonomies()) )339 $ map_option = 'edit_tags_per_page';338 else 339 $option = str_replace('-', '_', $option); 340 340 341 341 switch ( $map_option ) {
Note: See TracChangeset
for help on using the changeset viewer.