From 18a4a467f8513b0b959dab0e96fecfd3f757c098 Mon Sep 17 00:00:00 2001 From: Chi-Hsuan Huang Date: Tue, 18 Jan 2022 18:31:46 +0800 Subject: [PATCH] Fix get_automated_tax_supported_countries doesn't include UK (https://github.com/woocommerce/woocommerce-admin/pull/8180) * Add GB to automated tax supported countries list * Add changelog --- .../changelogs/fix-5836-automated-tax-supported-countries-uk | 4 ++++ .../src/Features/OnboardingTasks/Tasks/Tax.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 plugins/woocommerce-admin/changelogs/fix-5836-automated-tax-supported-countries-uk diff --git a/plugins/woocommerce-admin/changelogs/fix-5836-automated-tax-supported-countries-uk b/plugins/woocommerce-admin/changelogs/fix-5836-automated-tax-supported-countries-uk new file mode 100644 index 00000000000..2412f28533a --- /dev/null +++ b/plugins/woocommerce-admin/changelogs/fix-5836-automated-tax-supported-countries-uk @@ -0,0 +1,4 @@ +Significance: patch +Type: Fix + +Fix get_automated_tax_supported_countries doesn't include UK. #8180 diff --git a/plugins/woocommerce-admin/src/Features/OnboardingTasks/Tasks/Tax.php b/plugins/woocommerce-admin/src/Features/OnboardingTasks/Tasks/Tax.php index 381f0470b03..9be5ec12e76 100644 --- a/plugins/woocommerce-admin/src/Features/OnboardingTasks/Tasks/Tax.php +++ b/plugins/woocommerce-admin/src/Features/OnboardingTasks/Tasks/Tax.php @@ -155,7 +155,7 @@ class Tax extends Task { public static function get_automated_support_countries() { // https://developers.taxjar.com/api/reference/#countries . $tax_supported_countries = array_merge( - array( 'US', 'CA', 'AU' ), + array( 'US', 'CA', 'AU', 'GB' ), WC()->countries->get_european_union_countries() );