summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-settings.php
diff options
context:
space:
mode:
authormatt <matt@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-07-18 20:02:27 +0000
committermatt <matt@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-07-18 20:02:27 +0000
commit987d9d09b813bf26661ea0735f2c9d4ec5cedd23 (patch)
tree82fd35159670438aefa23a29a06b5de8793cadc9 /wp-inst/wp-settings.php
parente1b146152422500f8f99eacaa06f71422e3202ba (diff)
Porting changes from WP
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@42 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-settings.php')
-rw-r--r--wp-inst/wp-settings.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/wp-inst/wp-settings.php b/wp-inst/wp-settings.php
index 66231b2..fb45454 100644
--- a/wp-inst/wp-settings.php
+++ b/wp-inst/wp-settings.php
@@ -166,6 +166,17 @@ if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF']
define('COOKIEHASH', $cookiehash);
endif;
+if ( !defined('USER_COOKIE') )
+ define('USER_COOKIE', 'wordpressuser_'. COOKIEHASH);
+if ( !defined('PASS_COOKIE') )
+ define('PASS_COOKIE', 'wordpresspass_'. COOKIEHASH);
+if ( !defined('COOKIEPATH') )
+ define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) );
+if ( !defined('SITECOOKIEPATH') )
+ define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('siteurl') . '/' ) );
+if ( !defined('COOKIE_DOMAIN') )
+ define('COOKIE_DOMAIN', false);
+
require (ABSPATH . WPINC . '/vars.php');
do_action('core_files_loaded');