From f4db4ecad7c739795599a6577980331825e4f323 Mon Sep 17 00:00:00 2001 From: Shohei Tanaka Date: Fri, 27 Jul 2018 19:12:17 +0900 Subject: [PATCH] Update it Do you mean it? --- includes/class-wc-checkout.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/class-wc-checkout.php b/includes/class-wc-checkout.php index 0e72e72410e..0136b9fadae 100644 --- a/includes/class-wc-checkout.php +++ b/includes/class-wc-checkout.php @@ -702,9 +702,8 @@ class WC_Checkout { /* translators: %s: email address */ $errors->add( 'validation', sprintf( __( '%s is not a valid email address.', 'woocommerce' ), '' . esc_html( $field_label ) . '' ) ); continue; - }else{ - $data[ $key ] = sanitize_email( $data[ $key ] ); } + $data[ $key ] = sanitize_email( $data[ $key ] ); } if ( '' !== $data[ $key ] && in_array( 'state', $format, true ) ) {