Usage of HTTP_HOST in the administration
|Reported by:||amirhabibi||Owned by:||dd32|
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 variable.
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 server.
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.
Change History (19)
- Keywords needs-patch added
- Resolution duplicate deleted
- Status changed from closed to reopened