Changeset 12375 for trunk/wp-admin/includes/template.php
- Timestamp:
- 12/11/2009 11:14:43 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r12318 r12375 3717 3717 } 3718 3718 3719 $option = str_replace( '-', '_', "${screen}_per_page");3720 $per_page = get_user_option($option);3721 if ( empty( $per_page)) {3719 $option = str_replace( '-', '_', "${screen}_per_page" ); 3720 $per_page = (int) get_user_option( $option, 0, false ); 3721 if ( empty( $per_page ) || $per_page < 1 ) { 3722 3722 if ( 'plugins' == $screen ) 3723 3723 $per_page = 999; … … 3725 3725 $per_page = 20; 3726 3726 } 3727 if ( 'edit_comments_per_page' == $option ) 3728 $per_page = apply_filters( 'comments_per_page', $per_page, isset($_REQUEST['comment_status']) ? $_REQUEST['comment_status'] : 'all' ); 3729 elseif ( 'categories' == $option ) 3730 $per_page = apply_filters( 'edit_categories_per_page', $per_page ); 3731 else 3732 $per_page = apply_filters( $option, $per_page ); 3727 3733 3728 3734 $return = '<h5>' . __('Options') . "</h5>\n";
Note: See TracChangeset
for help on using the changeset viewer.