Pass the authenticated user_login to the wp_login action. Props Otto42, SergeyBiryukov. fixes #15473
git-svn-id: https://develop.svn.wordpress.org/trunk@18741 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
53b042285c
commit
c7f61b2857
@ -61,7 +61,7 @@ function wp_signon( $credentials = '', $secure_cookie = '' ) {
|
||||
}
|
||||
|
||||
wp_set_auth_cookie($user->ID, $credentials['remember'], $secure_cookie);
|
||||
do_action('wp_login', $credentials['user_login']);
|
||||
do_action('wp_login', $user->user_login, $user);
|
||||
return $user;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user