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:
jeremyfelt 2015-12-14 02:58:22 +00:00
parent 11b969c95b
commit 5f5898d200

View File

@ -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;