[wp-trac] [WordPress Trac] #16858: Usage of HTTP_HOST in the administration
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 16 22:38:27 UTC 2011
#16858: Usage of HTTP_HOST in the administration
----------------------------+------------------------------
Reporter: amirhabibi | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.1
Severity: normal | Resolution:
Keywords: needs-patch |
----------------------------+------------------------------
Changes (by dd32):
* keywords: => needs-patch
* status: closed => reopened
* resolution: duplicate =>
Comment:
#9235 deals with the IP of the user accessing the site being "wrong"
behind a load balancer. This here is a URL being crafted ignoring the rest
of the !WordPress API (ie. site_url() and friends)
[http://core.trac.wordpress.org/browser/trunk/wp-admin/includes/class-wp-
list-table.php#L477 class-wp-list-table.php] should really be doing
something like `$current_url = self_admin_url($_SERVER['REQUEST_URI']);` -
that however will not work verbatim, as REQUEST_URI will include /wp-
admin/ and the list tables may be used in multiple environments..
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16858#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list