Changeset 2725
- Timestamp:
- 07/18/2005 07:55:24 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable-functions.php
r2711 r2725 192 192 } 193 193 194 setcookie( 'wordpressuser_'. $cookiehash, $username, time() + 31536000, $cookiepath);195 setcookie( 'wordpresspass_'. $cookiehash, $password, time() + 31536000, $cookiepath);194 setcookie(USER_COOKIE, $username, time() + 31536000, $cookiepath, COOKIE_DOMAIN); 195 setcookie(PASS_COOKIE, $password, time() + 31536000, $cookiepath, COOKIE_DOMAIN); 196 196 197 197 if ( $cookiepath != $sitecookiepath ) { 198 setcookie( 'wordpressuser_'. $cookiehash, $username, time() + 31536000, $sitecookiepath);199 setcookie( 'wordpresspass_'. $cookiehash, $password, time() + 31536000, $sitecookiepath);198 setcookie(USER_COOKIE, $username, time() + 31536000, $sitecookiepath, COOKIE_DOMAIN); 199 setcookie(PASS_COOKIE, $password, time() + 31536000, $sitecookiepath, COOKIE_DOMAIN); 200 200 } 201 201 } … … 204 204 if ( !function_exists('wp_clearcookie') ) : 205 205 function wp_clearcookie() { 206 setcookie( 'wordpressuser_' . COOKIEHASH, ' ', time() - 31536000, COOKIEPATH);207 setcookie( 'wordpresspass_' . COOKIEHASH, ' ', time() - 31536000, COOKIEPATH);208 setcookie( 'wordpressuser_' . COOKIEHASH, ' ', time() - 31536000, SITECOOKIEPATH);209 setcookie( 'wordpresspass_' . COOKIEHASH, ' ', time() - 31536000, SITECOOKIEPATH);206 setcookie(USER_COOKIE, ' ', time() - 31536000, COOKIEPATH, COOKIE_DOMAIN); 207 setcookie(PASS_COOKIE, ' ', time() - 31536000, COOKIEPATH, COOKIE_DOMAIN); 208 setcookie(USER_COOKIE, ' ', time() - 31536000, SITECOOKIEPATH, COOKIE_DOMAIN); 209 setcookie(PASS_COOKIE, ' ', time() - 31536000, SITECOOKIEPATH, COOKIE_DOMAIN); 210 210 } 211 211 endif; -
trunk/wp-includes/vars.php
r2436 r2725 107 107 } 108 108 109 // Path for cookies110 define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) );111 define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('siteurl') . '/' ) );112 113 109 ?> -
trunk/wp-settings.php
r2706 r2725 57 57 if ( defined('CUSTOM_USER_META_TABLE') ) 58 58 $wpdb->usermeta = CUSTOM_USER_META_TABLE; 59 59 60 60 // We're going to need to keep this around for a few months even though we're not using it internally 61 61 … … 104 104 define('COOKIEHASH', $cookiehash); 105 105 endif; 106 107 if ( !defined('USER_COOKIE') ) 108 define('USER_COOKIE', 'wordpressuser_'. COOKIEHASH); 109 if ( !defined('PASS_COOKIE') ) 110 define('PASS_COOKIE', 'wordpresspass_'. COOKIEHASH); 111 if ( !defined('COOKIEPATH') ) 112 define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) ); 113 if ( !defined('SITECOOKIEPATH') ) 114 define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('siteurl') . '/' ) ); 115 if ( !defined('COOKIE_DOMAIN') ) 116 define('COOKIE_DOMAIN', false); 106 117 107 118 require (ABSPATH . WPINC . '/vars.php');
Note: See TracChangeset
for help on using the changeset viewer.