summaryrefslogtreecommitdiffstats
path: root/wp-settings.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-06 13:45:02 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-06 13:45:02 +0000
commit85381c1176f66aaecfd057d659e705da90facf78 (patch)
tree39548b1e00b40cc9042d99f9ae1694b87781983f /wp-settings.php
parent779f0f4411b6467808ff053780c7c96ed0f9a571 (diff)
downloadwordpress-mu-85381c1176f66aaecfd057d659e705da90facf78.tar.gz
wordpress-mu-85381c1176f66aaecfd057d659e705da90facf78.tar.xz
wordpress-mu-85381c1176f66aaecfd057d659e705da90facf78.zip
Allow side-wide login cookies for vhosts.
Warning! This has the side effect that *anyone* on your site can steal your login cookie if they can execute Javascript in their blog. git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@639 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-settings.php')
-rw-r--r--wp-settings.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-settings.php b/wp-settings.php
index 50ba158..a70c430 100644
--- a/wp-settings.php
+++ b/wp-settings.php
@@ -224,7 +224,7 @@ if ( !defined('COOKIEPATH') )
if ( !defined('SITECOOKIEPATH') )
define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('siteurl') . '/' ) );
if ( !defined('COOKIE_DOMAIN') )
- define('COOKIE_DOMAIN', false);
+ define('COOKIE_DOMAIN', '.' . $current_site->domain);
require (ABSPATH . WPINC . '/vars.php');