Ticket #16858: 16858.diff

File 16858.diff, 1.1 KB (added by dd32, 2 years ago)
  • wp-admin/includes/class-wp-list-table.php

     
    475475 
    476476                $current = $this->get_pagenum(); 
    477477 
    478                 $current_url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 
     478                $current_url = remove_query_arg( array( 'hotkeys_highlight_last', 'hotkeys_highlight_first' ) ); 
    479479 
    480                 $current_url = remove_query_arg( array( 'hotkeys_highlight_last', 'hotkeys_highlight_first' ), $current_url ); 
    481  
    482480                $page_links = array(); 
    483481 
    484482                $disable_first = $disable_last = ''; 
     
    631629 
    632630                list( $columns, $hidden, $sortable ) = $this->get_column_info(); 
    633631 
    634                 $current_url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 
    635                 $current_url = remove_query_arg( 'paged', $current_url ); 
     632                $current_url = remove_query_arg( 'paged' ); 
    636633 
    637634                if ( isset( $_GET['orderby'] ) ) 
    638635                        $current_orderby = $_GET['orderby'];