Fix shipping display logic United Kingdom country code (#33629)

* Fix shipping display logic country code UK -> GB

* Add changelog
This commit is contained in:
Chi-Hsuan Huang 2022-06-28 11:15:01 +08:00 committed by GitHub
parent 14066bdeae
commit 5eea5ab072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Fix shipping display logic country code

View File

@ -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();

View File

@ -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' ),
);
}
}