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:
parent
aaac167408
commit
244ed3485f
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user