mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Pagination fixes. Props garyc40. fixes #16357
git-svn-id: https://develop.svn.wordpress.org/trunk@17361 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -13,7 +13,7 @@ if ( ! current_user_can( 'list_users' ) )
|
||||
wp_die( __( 'Cheatin’ uh?' ) );
|
||||
|
||||
$wp_list_table = _get_list_table('WP_Users_List_Table');
|
||||
|
||||
$pagenum = $wp_list_table->get_pagenum();
|
||||
$title = __('Users');
|
||||
$parent_file = 'users.php';
|
||||
|
||||
@@ -290,7 +290,11 @@ default:
|
||||
}
|
||||
|
||||
$wp_list_table->prepare_items();
|
||||
|
||||
$total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );
|
||||
if ( $pagenum > $total_pages ) {
|
||||
wp_redirect( add_query_arg( 'paged', $total_pages ) );
|
||||
exit;
|
||||
}
|
||||
include('./admin-header.php');
|
||||
|
||||
$messages = array();
|
||||
|
||||
Reference in New Issue
Block a user