Fix per_page screen option for custom post types and taxonomies. Don't convert taxonomy and post type slugs from hyphen to underscore when saving the per_page usermeta. Props nacin. see #18958

git-svn-id: https://develop.svn.wordpress.org/trunk@21322 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-07-25 16:13:13 +00:00
parent 03ac2d077c
commit ff3b56e89f
3 changed files with 7 additions and 7 deletions

View File

@@ -215,7 +215,7 @@ if ( 'post' == $post_type ) {
);
}
add_screen_option( 'per_page', array('label' => $title, 'default' => 20) );
add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20, 'option' => 'edit_' . $post_type . '_per_page' ) );
require_once('./admin-header.php');
?>