From 72c6868fae940cce420117053801b4738d5b2edb Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Mon, 14 Dec 2015 02:59:27 +0000 Subject: [PATCH] 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 --- wp-admin/network/sites.php | 6 +++++- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-admin/network/sites.php b/wp-admin/network/sites.php index e0e7e1e995..a0b699f174 100644 --- a/wp-admin/network/sites.php +++ b/wp-admin/network/sites.php @@ -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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 7129b76d1f..f901d6ab7f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.