diff --git a/includes/class-wc-checkout.php b/includes/class-wc-checkout.php index c87799cbf8f..686846abe78 100644 --- a/includes/class-wc-checkout.php +++ b/includes/class-wc-checkout.php @@ -747,7 +747,7 @@ class WC_Checkout { $field_label = isset( $field['label'] ) ? $field['label'] : ''; if ( $validate_fieldset && - 'country' === $field['type'] && + ( isset( $field['type'] ) && 'country' === $field['type'] ) && ! WC()->countries->country_exists( $data[ $key ] ) ) { /* translators: ISO 3166-1 alpha-2 country code */ $errors->add( $key . '_validation', sprintf( __( "'%s' is not a valid country code.", 'woocommerce' ), $data[ $key ] ) );