mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
MS: Fix pagination in MS Sites List Table when entering a page number.
When a page number is manually entered in the sites list table and no bulk action is selected, add `paged` as a query argument to the redirect. Fixes #32982. git-svn-id: https://develop.svn.wordpress.org/trunk@35917 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -161,7 +161,11 @@ if ( isset( $_GET['action'] ) ) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
wp_redirect( network_admin_url( 'sites.php' ) );
|
||||
$location = network_admin_url( 'sites.php' );
|
||||
if ( ! empty( $_REQUEST['paged'] ) ) {
|
||||
$location = add_query_arg( 'paged', (int) $_REQUEST['paged'], $location );
|
||||
}
|
||||
wp_redirect( $location );
|
||||
exit();
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user