Fix shipping display logic United Kingdom country code (#33629)
* Fix shipping display logic country code UK -> GB * Add changelog
This commit is contained in:
parent
14066bdeae
commit
5eea5ab072
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Fix shipping display logic country code
|
|
@ -110,7 +110,7 @@ class Shipping extends Task {
|
|||
return true;
|
||||
}
|
||||
|
||||
return in_array( $store_country, array( 'AU', 'CA', 'UK' ), true );
|
||||
return in_array( $store_country, array( 'AU', 'CA', 'GB' ), true );
|
||||
}
|
||||
|
||||
return self::has_physical_products();
|
||||
|
|
|
@ -121,7 +121,7 @@ class WC_Admin_Tests_OnboardingTasks_Task_Shipping extends WC_Unit_Test_Case {
|
|||
return array(
|
||||
array( 'AU' ),
|
||||
array( 'CA' ),
|
||||
array( 'UK' ),
|
||||
array( 'GB' ),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue