mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
Try to fix some of the siteurl stomping. Bug 678.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bf06e2f857
commit
4b699a0a34
@ -10,7 +10,7 @@ header('Cache-Control: no-cache, must-revalidate');
|
||||
header('Pragma: no-cache');
|
||||
|
||||
// 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'] );
|
||||
|
||||
if ( dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_settings('siteurl') )
|
||||
|
Loading…
Reference in New Issue
Block a user