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:
Mark Jaquith
2010-06-15 20:07:02 +00:00
parent 5d435fd623
commit 8abb12ffc6
4 changed files with 8 additions and 11 deletions
+3 -1
View File
@@ -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;