[wp-trac] [WordPress Trac] #47356: WP Admin Sortable Columns Have Wrong Link
WordPress Trac
noreply at wordpress.org
Thu May 23 00:10:30 UTC 2019
#47356: WP Admin Sortable Columns Have Wrong Link
---------------------------+-----------------------------------------------
Reporter: kwhat | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: | Version: 5.2.1
Administration |
Severity: minor | Keywords: needs-patch needs-design-feedback
Focuses: |
---------------------------+-----------------------------------------------
Hi,
Thank you for taking the time to review my bug report. I recently noticed
that our WordPress install is linking to the wrong url on the wp-
admin/edit.php section. If you examine the lists column header for
sortable links, you will notice that they have the wrong link under some
circumstances. I have tracked the issue back to wp-admin/includes/class-
wp-list-table.php:798 `$current_url = set_url_scheme( 'http://' .
$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );` Shouldn't this url
come from `admin_url()` or similar function? At the very least, this url
should detect (and use) https when available. I can submit a patch if it
would be helpful, however, I would first like to confirm that this is
indeed an issue and, if so, ask how you would like to resolve it.
Thanks.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47356>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list