Hide state selector from Ethiopia and Rwanda addresses (#35481)

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
This commit is contained in:
Néstor Soriano 2023-05-11 11:05:11 +02:00 committed by GitHub
parent 4688290463
commit eccff559a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Hide state selector for Ethiopia and Rwanda addresses

View File

@ -603,6 +603,7 @@ return array(
'ZA' => __( 'Zamora', 'woocommerce' ),
'Z' => __( 'Zaragoza', 'woocommerce' ),
),
'ET' => array(),
'FI' => array(),
'FR' => array(),
'GF' => array(),
@ -1807,6 +1808,7 @@ return array(
'RSKM' => _x( 'Kosovo-Metohija', 'district', 'woocommerce' ),
'RSVO' => _x( 'Vojvodina', 'district', 'woocommerce' ),
),
'RW' => array(),
'SE' => array(),
'UA' => array( // Ukrainian oblasts. https://github.com/unicode-org/cldr/blob/release-42/common/subdivisions/en.xml#L5243.
'UA05' => __( 'Vinnychchyna', 'woocommerce' ),

View File

@ -1024,6 +1024,12 @@ class WC_Countries {
'hidden' => true,
),
),
'ET' => array(
'state' => array(
'required' => false,
'hidden' => true,
),
),
'FI' => array(
'postcode' => array(
'priority' => 65,
@ -1393,6 +1399,12 @@ class WC_Countries {
'required' => false,
),
),
'RW' => array(
'state' => array(
'required' => false,
'hidden' => true,
),
),
'SG' => array(
'state' => array(
'required' => false,