Ticket #14135: 14135.2.diff
File 14135.2.diff, 936 bytes (added by , 15 years ago) |
---|
-
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_per_page, $per_page ); 52 53 53 // Handle bulk actions 54 54 if ( isset($_GET['doaction']) || isset($_GET['doaction2']) || isset($_GET['delete_all']) || isset($_GET['delete_all2']) || isset($_GET['bulk_edit']) ) { 55 55 check_admin_referer('bulk-posts');