diff --git a/core/um-actions-login.php b/core/um-actions-login.php index 45d1570f..3c3c2e01 100644 --- a/core/um-actions-login.php +++ b/core/um-actions-login.php @@ -74,7 +74,7 @@ } // if there is an error notify wp - if( $ultimatemember->form->has_error( $field ) || $ultimatemember->form->has_error( $user_password ) || is_wp_error( $user ) ) { + if( $ultimatemember->form->has_error( $field ) || $ultimatemember->form->has_error( $user_password ) ) { do_action( 'wp_login_failed', $user_name ); } }