mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-08 16:41:44 +01: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. 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:
parent
aace0e33c1
commit
72c6868fae
@ -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;
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user