Don't use missing $taxonomy in screen_options(). $tax->name has the taxonomy slug/name we need
git-svn-id: http://svn.automattic.com/wordpress/trunk@14168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
049af4a425
commit
4f9e5d644b
|
@ -3776,10 +3776,10 @@ function screen_options($screen) {
|
|||
|
||||
$option = str_replace( '-', '_', "{$screen->id}_per_page" );
|
||||
if ( 'edit_tags_per_page' == $option ) {
|
||||
if ( 'category' == $taxonomy )
|
||||
if ( 'category' == $tax->name )
|
||||
$option = 'categories_per_page';
|
||||
elseif ( 'post_tag' != $taxonomy )
|
||||
$option = 'edit_' . $taxonomy . '_per_page';
|
||||
elseif ( 'post_tag' != $tax->name )
|
||||
$option = 'edit_' . $tax->name . '_per_page';
|
||||
}
|
||||
|
||||
$per_page = (int) get_user_option( $option );
|
||||
|
|
Loading…
Reference in New Issue