Remove GB from WC_Countries::get_european_union_countries and add them to WC_Countries::get_vat_countries

This commit is contained in:
Gerhard 2019-10-31 09:33:14 +02:00
parent 34e486940d
commit 00ade79647
1 changed files with 3 additions and 2 deletions

View File

@ -354,7 +354,7 @@ class WC_Countries {
* @return string[]
*/
public function get_european_union_countries( $deprecated = '' ) {
$countries = array( 'AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GB', 'GR', 'HU', 'HR', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK' );
$countries = array( 'AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GR', 'HU', 'HR', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK' );
if ( ! empty( $deprecated ) ) {
wc_deprecated_argument( 'type', '3.9.0', 'Use the WC_Countries::get_vat_countries method instead.' );
@ -374,8 +374,9 @@ class WC_Countries {
$eu_countries = get_european_union_countries();
$countries = array(
'MC',
'GB',
'IM',
'MC',
'NO',
);