diff --git a/plugins/woocommerce/changelog/fix-hu-and-bg-state-optional b/plugins/woocommerce/changelog/fix-hu-and-bg-state-optional new file mode 100644 index 00000000000..a9b371a7582 --- /dev/null +++ b/plugins/woocommerce/changelog/fix-hu-and-bg-state-optional @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Make states optional for Hungary and Bulgaria. diff --git a/plugins/woocommerce/includes/class-wc-countries.php b/plugins/woocommerce/includes/class-wc-countries.php index c88e63b55c1..f4fa5ceab6e 100644 --- a/plugins/woocommerce/includes/class-wc-countries.php +++ b/plugins/woocommerce/includes/class-wc-countries.php @@ -882,6 +882,11 @@ class WC_Countries { 'hidden' => true, ), ), + 'BG' => array( + 'state' => array( + 'required' => false, + ), + ), 'BH' => array( 'postcode' => array( 'required' => false, @@ -1115,7 +1120,8 @@ class WC_Countries { 'priority' => 72, ), 'state' => array( - 'label' => __( 'County', 'woocommerce' ), + 'label' => __( 'County', 'woocommerce' ), + 'required' => false, ), ), 'ID' => array(