Make WordPress Core

Changeset 1526 for trunk/wp-login.php


Ignore:
Timestamp:
08/09/2004 09:29:25 AM (20 years ago)
Author:
saxmatt
Message:

Fix for people who move.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r1510 r1526  
    3737    }
    3838}
     39
     40// If someone has moved WordPress let's try to detect it
     41if ( dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']) != get_settings('siteurl') )
     42    update_option('siteurl', dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']) );
    3943
    4044switch($action) {
Note: See TracChangeset for help on using the changeset viewer.