Make WordPress Core


Ignore:
Timestamp:
07/25/2012 04:13:13 PM (13 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r20630 r21322  
    216216}
    217217
    218 add_screen_option( 'per_page', array('label' => $title, 'default' => 20) );
     218add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20, 'option' => 'edit_' . $post_type . '_per_page' ) );
    219219
    220220require_once('./admin-header.php');
Note: See TracChangeset for help on using the changeset viewer.