Don't reset cookies if INSTALLING.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a855814939
commit
a133ed04a1
|
@ -2016,6 +2016,10 @@ function wp_reset_vars($vars) {
|
|||
// If siteurl or home changed, reset cookies and flush rewrite rules.
|
||||
function update_home_siteurl($old_value, $value) {
|
||||
global $wp_rewrite, $user_login, $user_pass_md5;
|
||||
|
||||
if ( defined("WP_INSTALLING") )
|
||||
return;
|
||||
|
||||
// If home changed, write rewrite rules to new location.
|
||||
$wp_rewrite->flush_rules();
|
||||
// Clear cookies for old paths.
|
||||
|
|
Loading…
Reference in New Issue