Fix for people who move.

git-svn-id: https://develop.svn.wordpress.org/trunk@1526 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-08-09 09:29:25 +00:00
parent aaac167408
commit 244ed3485f
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ for ($i = 0; $i < count($wpvarstoreset); $i = $i + 1) {
}
}
// 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']) );
switch($action) {
case 'logout':