WordPress.org

Make WordPress Core

Ticket #35620: 35620.1.diff

File 35620.1.diff, 1.2 KB (added by rachelbaker, 5 years ago)

Remove all the wp_removable_query_args() during list-table pagination

  • src/wp-admin/includes/class-wp-list-table.php

     
    763763                $output = '<span class="displaying-num">' . sprintf( _n( '%s item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '</span>';
    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();
    772773
  • src/wp-includes/functions.php

     
    865865                'disabled',
    866866                'enabled',
    867867                'error',
     868                'hotkeys_highlight_first',
     869                'hotkeys_highlight_last',
    868870                'locked',
    869871                'message',
    870872                'same',