From 52dd2f508b0770a7fd1f7d354c0a6fe1b06dc984 Mon Sep 17 00:00:00 2001 From: Myles McNamara Date: Mon, 22 May 2017 15:26:49 -0400 Subject: [PATCH] Fix account email activate 'user_login', and wp_login params $user_login is not defined, should be $user->user_login, and wp_login should pass two params, the $user->user_login and $user object --- core/um-permalinks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/um-permalinks.php b/core/um-permalinks.php index a0b6c229..52f8c531 100644 --- a/core/um-permalinks.php +++ b/core/um-permalinks.php @@ -181,11 +181,11 @@ class UM_Permalinks { $user_id = $user->ID; // update wp user - wp_set_current_user( $user_id, $user_login ); + wp_set_current_user( $user_id, $user->user_login ); wp_set_auth_cookie( $user_id ); ob_start(); - do_action( 'wp_login', $user_login ); + do_action( 'wp_login', $user->user_login, $user ); ob_end_clean(); }