From c7f61b285713d29ce72aa9528768be325186054d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 21 Sep 2011 20:26:39 +0000 Subject: [PATCH] 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 --- wp-includes/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/user.php b/wp-includes/user.php index a75d4832f4..e942693139 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -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; }