Pass the authenticated user_login to the wp_login action. Props Otto42, SergeyBiryukov. fixes #15473
git-svn-id: http://svn.automattic.com/wordpress/trunk@18741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9a1be60235
commit
3c2ba4afed
|
@ -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