From f35e284a06428a9584018a46a9996d88632c66fc Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Wed, 1 Mar 2017 20:21:56 +0800 Subject: [PATCH] Fix WP authenticate filter hook --- core/um-actions-login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-actions-login.php b/core/um-actions-login.php index 815daa4f..0ad429a9 100644 --- a/core/um-actions-login.php +++ b/core/um-actions-login.php @@ -66,7 +66,7 @@ // add a way for other plugins like wp limit login // to limit the login attempts - $user = apply_filters( 'authenticate', null, $user_name, $args['user_password'] ); + $user = apply_filters( 'authenticate', $user, $user_name, $args['user_password'] ); // if there is an error notify wp if( $ultimatemember->form->has_error( $field ) || $ultimatemember->form->has_error( $user_password ) ) {