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:
parent
0a7a447555
commit
63790db707
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue