mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Add per page option to Screen Options for comments, posts, pages, and media.
git-svn-id: https://develop.svn.wordpress.org/trunk@10847 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -186,7 +186,8 @@ endif;
|
||||
$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
|
||||
if ( empty($pagenum) )
|
||||
$pagenum = 1;
|
||||
if( ! isset( $per_page ) || $per_page < 0 )
|
||||
$per_page = get_user_option('edit_pages_per_page');
|
||||
if ( empty( $per_page ) || $per_page < 0 )
|
||||
$per_page = 20;
|
||||
|
||||
$num_pages = ceil($wp_query->post_count / $per_page);
|
||||
|
||||
Reference in New Issue
Block a user