From e008d661f8eab4ec04116572926654cf1e24776c Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Tue, 6 Feb 2024 01:55:46 +0200 Subject: [PATCH] - fixed typo; --- includes/core/um-actions-form.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/core/um-actions-form.php b/includes/core/um-actions-form.php index c5955100..51b2b4a4 100644 --- a/includes/core/um-actions-form.php +++ b/includes/core/um-actions-form.php @@ -997,9 +997,8 @@ function um_submit_form_errors_hook_( $submitted_data, $form_data ) { case 'english': if ( '' !== $submitted_data[ $key ] ) { - if ( ! preg_match( '/^[a-zA-Z]*$/u', str_replace( ' ', '', $submitted_data[ $key ] ) ) ) { - UM()->form()->add_error( $key, __( 'You must provide english letters', 'ultimate-member' ) ); + UM()->form()->add_error( $key, __( 'You must provide English letters.', 'ultimate-member' ) ); } }