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:
ryan 2011-09-21 20:26:39 +00:00
parent 9a1be60235
commit 3c2ba4afed
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;
}