Make WordPress Core

Ticket #34800: canonical.php.diff

File canonical.php.diff, 259 bytes (added by sevcsik, 9 years ago)

canonical.php to use site_url host instead of original host

Line 
173,74d72
2<       $site = @parse_url(get_site_url());
3<
482,84d79
5<       // enforce the same host as site_url to not break CDN setups
6<       $redirect['host'] = $site['host'];
7<
8430c425
9<               $redirect['host'] = $site['host'];
10---
11>               $redirect['host'] = $original['host'];