Opened 6 years ago
Closed 5 years ago
#46037 closed defect (bug) (duplicate)
Fix URL creating in class-wp-list-table in wp-admin
Reported by: | tinodjwp | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description
At line 1009 and 1010 in wp-admin/includes/class-wp-list-table.php URL is created in the following way:
<?php $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); $current_url = remove_query_arg( 'paged', $current_url);
This makes troubles in some scenarios. Recommended way is to replace these two lines, by one line :
<?php $current_url = site_url(remove_query_arg( 'paged'));
Change History (4)
Note: See
TracTickets for help on using
tickets.
Please also see #46033, maybe there are other places this needs to be fixed.