- fixed typo;

This commit is contained in:
Mykyta Synelnikov
2024-02-06 01:55:46 +02:00
parent 2f44cc48f3
commit e008d661f8
+1 -2
View File
@@ -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' ) );
}
}