- fix for registration form;

This commit is contained in:
Mykyta Synelnikov
2023-06-30 22:10:16 +03:00
parent 7fafa3a4b3
commit 2ca243787e
+1 -1
View File
@@ -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;
}