Deprecate argument. Never fallback to options table for user option requests. Props nacin. fixes #11615

git-svn-id: https://develop.svn.wordpress.org/trunk@12616 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-01-07 00:01:52 +00:00
parent e7003d6c95
commit dfe2e39c2c
10 changed files with 20 additions and 19 deletions

View File

@@ -166,7 +166,7 @@ $pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
if ( empty($pagenum) )
$pagenum = 1;
$cats_per_page = (int) get_user_option( 'categories_per_page', 0, false );
$cats_per_page = (int) get_user_option( 'categories_per_page' );
if ( empty( $cats_per_page ) || $cats_per_page < 1 )
$cats_per_page = 20;
$cats_per_page = apply_filters( 'edit_categories_per_page', $cats_per_page );