Use default state ordering in the Checkout block instead of sorting alphabetically (#46656)
* Remove deep sort of states * Add changelog
This commit is contained in:
parent
d7ca80d6c8
commit
e87eb4e3ea
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Use the default ordering of states in the Checkout block
|
|
@ -62,7 +62,7 @@ class CartCheckoutUtils {
|
|||
$country_data[ $country_code ] = [
|
||||
'allowBilling' => isset( $billing_countries[ $country_code ] ),
|
||||
'allowShipping' => isset( $shipping_countries[ $country_code ] ),
|
||||
'states' => self::deep_sort_with_accents( $country_states[ $country_code ] ?? [] ),
|
||||
'states' => $country_states[ $country_code ] ?? [],
|
||||
'locale' => $country_locales[ $country_code ] ?? [],
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue