If home changes, write rewrite rules to new location. http://mosquito.wordpress.org/view.php?id=1143

git-svn-id: https://develop.svn.wordpress.org/trunk@2494 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-03-29 16:36:08 +00:00
parent 3213f820c9
commit bb00ba2e95
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,8 @@ case 'update':
if ($any_changed) { if ($any_changed) {
// If siteurl or home changed, reset cookies. // If siteurl or home changed, reset cookies.
if ( get_settings('siteurl') != $old_siteurl || get_settings('home') != $old_home ) { if ( get_settings('siteurl') != $old_siteurl || get_settings('home') != $old_home ) {
// If home changed, write rewrite rules to new location.
save_mod_rewrite_rules();
// Get currently logged in user and password. // Get currently logged in user and password.
get_currentuserinfo(); get_currentuserinfo();
// Clear cookies for old paths. // Clear cookies for old paths.