Fix honeypot triggering in password reset, when not set

This commit is contained in:
Daniel Winzen
2023-01-10 13:11:18 +01:00
parent 2218ff6ba7
commit d18943771d
+1 -1
View File
@@ -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' ) );
}