WordPress.org

Make WordPress Core

Ticket #14135: 14135.diff

File 14135.diff, 896 bytes (added by wpmuguru, 4 years ago)
  • wp-admin/edit.php

     
    4444if ( empty($pagenum) ) 
    4545        $pagenum = 1; 
    4646$per_page = 'edit_' . $post_type . '_per_page'; 
    47 $per_page = (int) get_user_option( $per_page ); 
    48 if ( empty( $per_page ) || $per_page < 1 ) 
    49         $per_page = 20; 
    50 // @todo filter based on type 
    51 $per_page = apply_filters( 'edit_posts_per_page', $per_page ); 
     47$posts_per_page = (int) get_user_option( $per_page ); 
     48if ( empty( $posts_per_page ) || $posts_per_page < 1 ) 
     49        $posts_per_page = 15; 
    5250 
     51$per_page = apply_filters( $per_page, $posts_per_page ); 
     52 
    5353// Handle bulk actions 
    5454if ( isset($_GET['doaction']) || isset($_GET['doaction2']) || isset($_GET['delete_all']) || isset($_GET['delete_all2']) || isset($_GET['bulk_edit']) ) { 
    5555        check_admin_referer('bulk-posts');