Make WordPress Core

Ticket #33976: patch.diff

File patch.diff, 1.0 KB (added by hideokamoto, 9 years ago)
  • src/wp-admin/includes/class-wp-list-table.php

     
    738738
    739739                $current = $this->get_pagenum();
    740740
    741                 $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
     741                $current_url = set_url_scheme( site_url( $_SERVER['REQUEST_URI'] ) );
    742742
    743743                $current_url = remove_query_arg( array( 'hotkeys_highlight_last', 'hotkeys_highlight_first' ), $current_url );
    744744
     
    10191019        public function print_column_headers( $with_id = true ) {
    10201020                list( $columns, $hidden, $sortable, $primary ) = $this->get_column_info();
    10211021
    1022                 $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
     1022                $current_url = set_url_scheme( site_url( $_SERVER['REQUEST_URI'] ) );
    10231023                $current_url = remove_query_arg( 'paged', $current_url );
    10241024
    10251025                if ( isset( $_GET['orderby'] ) )