Ticket #14135: 14135.3.diff
File 14135.3.diff, 1.6 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/post.php
895 895 $posts_per_page = (int) get_user_option( $per_page ); 896 896 if ( empty( $posts_per_page ) || $posts_per_page < 1 ) 897 897 $posts_per_page = 20; 898 899 $per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type ); 898 900 $posts_per_page = apply_filters( $per_page, $posts_per_page ); 899 901 900 901 902 $query = compact('post_type', 'post_status', 'perm', 'order', 'orderby', 'posts_per_page'); 902 903 903 904 // Hierarchical types require special args. -
wp-admin/edit.php
43 43 $pagenum = isset( $_GET['paged'] ) ? absint( $_GET['paged'] ) : 0; 44 44 if ( empty($pagenum) ) 45 45 $pagenum = 1; 46 $ per_page = 'edit_' . $post_type . '_per_page';47 $per_page = (int) get_user_option( $ per_page );46 $edit_per_page = 'edit_' . $post_type . '_per_page'; 47 $per_page = (int) get_user_option( $edit_per_page ); 48 48 if ( empty( $per_page ) || $per_page < 1 ) 49 49 $per_page = 20; 50 // @todo filter based on type51 $per_page = apply_filters( 'edit_posts_per_page', $per_page );52 50 51 $per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type ); 52 $per_page = apply_filters( $edit_per_page, $per_page ); 53 53 54 // Handle bulk actions 54 55 if ( isset($_GET['doaction']) || isset($_GET['doaction2']) || isset($_GET['delete_all']) || isset($_GET['delete_all2']) || isset($_GET['bulk_edit']) ) { 55 56 check_admin_referer('bulk-posts');