mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-08 17:38:26 +01:00
Users: Stop WP_List_Table notices from persisting on pagination navigation.
Adds the keyboard navigation query vars to `wp_removable_query_args()` and passes the results of said function to remove_query_var() inside the WP_List_Table pagination method. Props EFAREM for the initial patch. Fixes #35620. Built from https://develop.svn.wordpress.org/trunk@37663 git-svn-id: http://core.svn.wordpress.org/trunk@37629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
37a2c565e2
commit
445b9b6d94
@ -763,10 +763,11 @@ class WP_List_Table {
|
||||
$output = '<span class="displaying-num">' . sprintf( _n( '%s item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '</span>';
|
||||
|
||||
$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();
|
||||
|
||||
|
@ -865,6 +865,8 @@ function wp_removable_query_args() {
|
||||
'disabled',
|
||||
'enabled',
|
||||
'error',
|
||||
'hotkeys_highlight_first',
|
||||
'hotkeys_highlight_last',
|
||||
'locked',
|
||||
'message',
|
||||
'same',
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user