From d18943771d7858cae29b8e5f466f34d268a16957 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Tue, 10 Jan 2023 13:11:18 +0100 Subject: [PATCH] Fix honeypot triggering in password reset, when not set --- includes/core/class-password.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core/class-password.php b/includes/core/class-password.php index b2dc4053..28a0a38b 100644 --- a/includes/core/class-password.php +++ b/includes/core/class-password.php @@ -437,7 +437,7 @@ if ( ! class_exists( 'um\core\Password' ) ) { * @param $args */ public function um_reset_password_errors_hook( $args ) { - if ( '' !== $args[ UM()->honeypot ] ) { + if ( isset( $args[ UM()->honeypot ] ) && '' !== $args[ UM()->honeypot ] ) { wp_die( esc_html__( 'Hello, spam bot!', 'ultimate-member' ) ); }