Ticket #18958: 18958.3.diff
| File 18958.3.diff, 1.7 KB (added by nacin, 11 months ago) |
|---|
-
wp-admin/includes/misc.php
328 328 if ( !preg_match( '/^[a-z_-]+$/', $option ) ) 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); … … 337 335 $map_option = 'edit_per_page'; 338 336 if ( in_array( $type, get_taxonomies()) ) 339 337 $map_option = 'edit_tags_per_page'; 338 else 339 $option = str_replace('-', '_', $option); 340 340 341 341 switch ( $map_option ) { 342 342 case 'edit_per_page': -
wp-admin/edit-tags.php
36 36 $submenu_file = "edit-tags.php?taxonomy=$taxonomy"; 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() ) { 42 42 -
wp-admin/edit.php
215 215 ); 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'); 221 221 ?>