From bb00ba2e957cb53cf9f4f2e1133b2e6bac04c8eb Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 29 Mar 2005 16:36:08 +0000 Subject: [PATCH] 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 --- wp-admin/options.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/options.php b/wp-admin/options.php index b779b2049a..6a17d9adb2 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -70,6 +70,8 @@ case 'update': if ($any_changed) { // If siteurl or home changed, reset cookies. 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_currentuserinfo(); // Clear cookies for old paths.