WordPress.org

Make WordPress Core

Ticket #36201: class-wp-list-table-36201.patch

File class-wp-list-table-36201.patch, 616 bytes (added by waddles, 10 months ago)

updated for wordpress > 4.6

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

    diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php
    index 53ef0bc..7ac29e8 100644
    a b class WP_List_Table { 
    795795                $current              = $this->get_pagenum();
    796796                $removable_query_args = wp_removable_query_args();
    797797
    798                 $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
     798                $current_url = admin_url( basename( $_SERVER['REQUEST_URI'] ) );
    799799
    800800                $current_url = remove_query_arg( $removable_query_args, $current_url );
    801801