Changeset 21322 for trunk/wp-admin/includes/misc.php
- Timestamp:
- 07/25/2012 04:13:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.