Update it

Do you mean it?
This commit is contained in:
Shohei Tanaka 2018-07-27 19:12:17 +09:00 committed by GitHub
parent fdc9d42dc4
commit f4db4ecad7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -702,9 +702,8 @@ class WC_Checkout {
/* translators: %s: email address */
$errors->add( 'validation', sprintf( __( '%s is not a valid email address.', 'woocommerce' ), '<strong>' . esc_html( $field_label ) . '</strong>' ) );
continue;
}else{
$data[ $key ] = sanitize_email( $data[ $key ] );
}
$data[ $key ] = sanitize_email( $data[ $key ] );
}
if ( '' !== $data[ $key ] && in_array( 'state', $format, true ) ) {