Pagination fixes. Props garyc40. fixes #16357

git-svn-id: http://svn.automattic.com/wordpress/trunk@17361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2011-01-25 19:20:20 +00:00
parent 4ffa4e4f4e
commit b345e996c7
5 changed files with 35 additions and 10 deletions

View File

@@ -427,7 +427,11 @@ switch ( $_GET['action'] ) {
wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => $userfunction ), wp_get_referer() ) );
} else {
wp_redirect( network_admin_url( 'users.php' ) );
$location = network_admin_url( 'users.php' );
if ( ! empty( $_REQUEST['paged'] ) )
$location = add_query_arg( 'paged', (int) $_REQUEST['paged'], $location );
wp_redirect( $location );
}
exit();
break;