Make WordPress Core


Ignore:
Timestamp:
07/25/2012 04:13:13 PM (10 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-tags.php

    r21311 r21322  
    3737}
    3838
    39 add_screen_option( 'per_page', array('label' => $title, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page') );
     39add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) );
    4040
    4141switch ( $wp_list_table->current_action() ) {
Note: See TracChangeset for help on using the changeset viewer.