WordPress.org

Make WordPress Core

Changeset 14168


Ignore:
Timestamp:
04/20/2010 03:13:27 PM (8 years ago)
Author:
nbachiyski
Message:

Don't use missing $taxonomy in screen_options(). $tax->name has the taxonomy slug/name we need

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r14157 r14168  
    37773777    $option = str_replace( '-', '_', "{$screen->id}_per_page" );
    37783778    if ( 'edit_tags_per_page' == $option ) {
    3779         if ( 'category' == $taxonomy )
     3779        if ( 'category' == $tax->name )
    37803780            $option = 'categories_per_page';
    3781         elseif ( 'post_tag' != $taxonomy )
    3782             $option = 'edit_' . $taxonomy . '_per_page';
     3781        elseif ( 'post_tag' != $tax->name )
     3782            $option = 'edit_' . $tax->name . '_per_page';
    37833783    }
    37843784
Note: See TracChangeset for help on using the changeset viewer.