mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Make the number of taxonomies to display per page setting actually stick. props nacin. fixes #13899
git-svn-id: https://develop.svn.wordpress.org/trunk@15263 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -337,6 +337,9 @@ function set_screen_options() {
|
||||
$type = str_replace('_per_page', '', $type);
|
||||
if ( in_array($type, get_post_types()) )
|
||||
$map_option = 'edit_per_page';
|
||||
if ( in_array( $type, get_taxonomies()) )
|
||||
$map_option = 'edit_tags_per_page';
|
||||
|
||||
|
||||
switch ( $map_option ) {
|
||||
case 'edit_per_page':
|
||||
@@ -344,7 +347,6 @@ function set_screen_options() {
|
||||
case 'ms_users_per_page':
|
||||
case 'edit_comments_per_page':
|
||||
case 'upload_per_page':
|
||||
case 'categories_per_page':
|
||||
case 'edit_tags_per_page':
|
||||
case 'plugins_per_page':
|
||||
$value = (int) $value;
|
||||
|
||||
Reference in New Issue
Block a user