Make WordPress Core

Changeset 37663


Ignore:
Timestamp:
06/09/2016 01:55:40 AM (8 years ago)
Author:
rachelbaker
Message:

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.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r37488 r37663  
    764764
    765765        $current = $this->get_pagenum();
     766        $removable_query_args = wp_removable_query_args();
    766767
    767768        $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
    768769
    769         $current_url = remove_query_arg( array( 'hotkeys_highlight_last', 'hotkeys_highlight_first' ), $current_url );
     770        $current_url = remove_query_arg( $removable_query_args, $current_url );
    770771
    771772        $page_links = array();
  • trunk/src/wp-includes/functions.php

    r37646 r37663  
    866866        'enabled',
    867867        'error',
     868        'hotkeys_highlight_first',
     869        'hotkeys_highlight_last',
    868870        'locked',
    869871        'message',
Note: See TracChangeset for help on using the changeset viewer.