Merge pull request #31394 from tc33/fix/31393-geolocating-country-codes
Fix #31393 to use country from headers only if geolocating current user
This commit is contained in:
commit
b3a54801a1
|
@ -149,11 +149,10 @@ class WC_Geolocation {
|
|||
}
|
||||
|
||||
if ( empty( $ip_address ) ) {
|
||||
$ip_address = self::get_ip_address();
|
||||
$ip_address = self::get_ip_address();
|
||||
$country_code = self::get_country_code_from_headers();
|
||||
}
|
||||
|
||||
$country_code = self::get_country_code_from_headers();
|
||||
|
||||
/**
|
||||
* Get geolocation filter.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue