mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
set_auth_cookie action. see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6486 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6c07e81826
commit
1a4f8fd617
@ -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
Block a user