mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user