From 9c8327bdaaef363fbc3201213f81e4debae23947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Dini=C4=87?= Date: Sun, 21 Apr 2019 22:43:47 +0200 Subject: [PATCH] Do not use state for Serbia. --- i18n/states.php | 1 + includes/class-wc-countries.php | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/i18n/states.php b/i18n/states.php index 34f477fdd3e..e16b990fcfe 100644 --- a/i18n/states.php +++ b/i18n/states.php @@ -1077,6 +1077,7 @@ return array( 'VS' => __( 'Vaslui', 'woocommerce' ), 'VN' => __( 'Vrancea', 'woocommerce' ), ), + 'RS' => array(), 'SG' => array(), 'SK' => array(), 'SI' => array(), diff --git a/includes/class-wc-countries.php b/includes/class-wc-countries.php index 24f11f665ee..2cc33b0f060 100644 --- a/includes/class-wc-countries.php +++ b/includes/class-wc-countries.php @@ -1103,6 +1103,12 @@ class WC_Countries { 'required' => true, ), ), + 'RS' => array( + 'state' => array( + 'required' => false, + 'hidden' => true, + ), + ), 'SG' => array( 'state' => array( 'required' => false,