WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/09/2016 01:55:40 AM (4 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.

File:
1 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();
Note: See TracChangeset for help on using the changeset viewer.