Don't take parts of the URI after the script name when updating the siteurl.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d352c9be64
commit
0563f1101c
|
@ -45,8 +45,8 @@ header('Cache-Control: no-cache, must-revalidate');
|
|||
header('Pragma: no-cache');
|
||||
|
||||
// If someone has moved WordPress let's try to detect it
|
||||
if ( dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']) != get_settings('siteurl') )
|
||||
update_option('siteurl', dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']) );
|
||||
if ( dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']) != get_settings('siteurl') )
|
||||
update_option('siteurl', dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']) );
|
||||
|
||||
switch($action) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue