[wp-trac] [WordPress Trac] #16858: Usage of HTTP_HOST in the administration

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 15 13:33:47 UTC 2011

#16858: Usage of HTTP_HOST in the administration
 Reporter:  amirhabibi      |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.1
 Severity:  normal          |   Keywords:
 In some files like wp-admin/includes/class-wp-list-table.php (there are
 more files I think), some links are created by using the HTTP_HOST

 It's better to use the defined wordpress URL to create those links.

 In our case, we have a wordpress running behind a Squid cache. When you
 check for HTTP_HOST you get the *real* HOST and not the one with the Squid

 To bypass the problem, I added in the main config.php a line like this :

 $_SERVER['HTTP_HOST'] = 'www.my-visible-http-host.com';

 Without this setting and in our case, some links in the admin (next,
 previous page, re-ordering...) where pointing to the wrong server.

Ticket URL: <http://core.trac.wordpress.org/ticket/16858>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list