XPressME Integration Kit

Trac

Changeset 153 for trunk/wp-content


Ignore:
Timestamp:
Apr 4, 2009, 7:45:11 AM (16 years ago)
Author:
toemon
Message:

#88 wp_clear_auth_cookie()でワーニングの修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/plugins/xpressme/include/pluggable-override.php

    r131 r153  
    226226} 
    227227endif; 
     228 
     229if ( !function_exists('wp_clear_auth_cookie') ) : 
     230/** 
     231 * Removes all of the cookies associated with authentication. 
     232 * 
     233 * @since 2.5 
     234 */ 
     235function wp_clear_auth_cookie() { 
     236        do_action('clear_auth_cookie'); 
     237 
     238        @setcookie(AUTH_COOKIE, ' ', time() - 31536000, ADMIN_COOKIE_PATH, COOKIE_DOMAIN); 
     239        @setcookie(SECURE_AUTH_COOKIE, ' ', time() - 31536000, ADMIN_COOKIE_PATH, COOKIE_DOMAIN); 
     240        @setcookie(AUTH_COOKIE, ' ', time() - 31536000, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN); 
     241        @setcookie(SECURE_AUTH_COOKIE, ' ', time() - 31536000, PLUGINS_COOKIE_PATH, COOKIE_DOMAIN); 
     242        @setcookie(LOGGED_IN_COOKIE, ' ', time() - 31536000, COOKIEPATH, COOKIE_DOMAIN); 
     243        @setcookie(LOGGED_IN_COOKIE, ' ', time() - 31536000, SITECOOKIEPATH, COOKIE_DOMAIN); 
     244 
     245        // Old cookies 
     246        @setcookie(AUTH_COOKIE, ' ', time() - 31536000, COOKIEPATH, COOKIE_DOMAIN); 
     247        @setcookie(AUTH_COOKIE, ' ', time() - 31536000, SITECOOKIEPATH, COOKIE_DOMAIN); 
     248        @setcookie(SECURE_AUTH_COOKIE, ' ', time() - 31536000, COOKIEPATH, COOKIE_DOMAIN); 
     249        @setcookie(SECURE_AUTH_COOKIE, ' ', time() - 31536000, SITECOOKIEPATH, COOKIE_DOMAIN); 
     250 
     251        // Even older cookies 
     252        @setcookie(USER_COOKIE, ' ', time() - 31536000, COOKIEPATH, COOKIE_DOMAIN); 
     253        @setcookie(PASS_COOKIE, ' ', time() - 31536000, COOKIEPATH, COOKIE_DOMAIN); 
     254        @setcookie(USER_COOKIE, ' ', time() - 31536000, SITECOOKIEPATH, COOKIE_DOMAIN); 
     255        @setcookie(PASS_COOKIE, ' ', time() - 31536000, SITECOOKIEPATH, COOKIE_DOMAIN); 
     256} 
     257endif; 
     258 
     259 
     260 
     261 
     262 
     263 
    228264// ***********************************  End Of Pluggable Function Edit (wp-include/pluggable.php) ************************************ 
    229265 
Note: See TracChangeset for help on using the changeset viewer.