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.

Built from https://develop.svn.wordpress.org/trunk@35917


git-svn-id: http://core.svn.wordpress.org/trunk@35881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2015-12-14 02:59:27 +00:00
parent aace0e33c1
commit 72c6868fae
2 changed files with 6 additions and 2 deletions

View File

@ -161,7 +161,11 @@ if ( isset( $_GET['action'] ) ) {
} }
} }
} else { } 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(); exit();
} }
break; break;

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-alpha-35916'; $wp_version = '4.5-alpha-35917';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.