set_auth_cookie action. see #5367

git-svn-id: http://svn.automattic.com/wordpress/trunk@6486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-12-24 08:01:55 +00:00
parent 0a7a447555
commit 63790db707
1 changed files with 2 additions and 0 deletions

View File

@ -373,6 +373,8 @@ function wp_set_auth_cookie($user_id, $remember = false) {
$cookie = $user->user_login . '|' . $expiration . '|' . $hash;
do_action('set_auth_cookie', $cookie, $expire);
setcookie(AUTH_COOKIE, $cookie, $expire, COOKIEPATH, COOKIE_DOMAIN);
if ( COOKIEPATH != SITECOOKIEPATH )
setcookie(AUTH_COOKIE, $cookie, $expire, SITECOOKIEPATH, COOKIE_DOMAIN);