diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index 60a4b31f9b..d197a6a40d 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -763,10 +763,11 @@ class WP_List_Table { $output = '' . sprintf( _n( '%s item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . ''; $current = $this->get_pagenum(); + $removable_query_args = wp_removable_query_args(); $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); - $current_url = remove_query_arg( array( 'hotkeys_highlight_last', 'hotkeys_highlight_first' ), $current_url ); + $current_url = remove_query_arg( $removable_query_args, $current_url ); $page_links = array(); diff --git a/wp-includes/functions.php b/wp-includes/functions.php index cec338693e..f64a226ba4 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -865,6 +865,8 @@ function wp_removable_query_args() { 'disabled', 'enabled', 'error', + 'hotkeys_highlight_first', + 'hotkeys_highlight_last', 'locked', 'message', 'same', diff --git a/wp-includes/version.php b/wp-includes/version.php index 23a4072c5e..dc768bfa0e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37662'; +$wp_version = '4.6-alpha-37663'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.