Try to fix some of the siteurl stomping. Bug 678.
git-svn-id: https://develop.svn.wordpress.org/trunk@2110 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8aee31bc63
commit
7e34cc3a11
|
@ -10,7 +10,7 @@ header('Cache-Control: no-cache, must-revalidate');
|
||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
|
|
||||||
// If someone has moved WordPress let's try to detect it
|
// If someone has moved WordPress let's try to detect it
|
||||||
if ( isset( $_SERVER['PATH_INFO'] ) )
|
if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) )
|
||||||
$_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] );
|
$_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] );
|
||||||
|
|
||||||
if ( dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_settings('siteurl') )
|
if ( dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_settings('siteurl') )
|
||||||
|
|
Loading…
Reference in New Issue