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:
Ryan Boren 2011-09-21 20:26:39 +00:00
parent 53b042285c
commit c7f61b2857
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}