Changeset 2725 for trunk/wp-includes/pluggable-functions.php
- Timestamp:
- 07/18/2005 07:55:24 PM (19 years ago)
- File:
-
- 1 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;
Note: See TracChangeset
for help on using the changeset viewer.