diff --git a/src/wp-admin/includes/class-wp-list-table.php b/src/wp-admin/includes/class-wp-list-table.php index 60a4b31f9b..d197a6a40d 100644 --- a/src/wp-admin/includes/class-wp-list-table.php +++ b/src/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/src/wp-includes/functions.php b/src/wp-includes/functions.php index cec338693e..f64a226ba4 100644 --- a/src/wp-includes/functions.php +++ b/src/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',