From 2ca243787edc3d5f8ca9a12dd11173ec56a44645 Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Fri, 30 Jun 2023 22:10:16 +0300 Subject: [PATCH] - fix for registration form; --- includes/core/class-form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core/class-form.php b/includes/core/class-form.php index 41fe3550..6e56e432 100644 --- a/includes/core/class-form.php +++ b/includes/core/class-form.php @@ -450,7 +450,7 @@ if ( ! class_exists( 'um\core\Form' ) ) { unset( $custom_fields[ $cf_k ] ); } - if ( ! array_key_exists( 'type', $cf_data ) || 'password' === $cf_data['type'] ) { + if ( array_key_exists( 'type', $cf_data ) && 'password' === $cf_data['type'] ) { $ignore_keys[] = $cf_k; $ignore_keys[] = 'confirm_' . $cf_k; }