Last active
December 9, 2016 09:19
-
-
Save primozcigler/4fb346fea293e13d2df66c7aeb788fb0 to your computer and use it in GitHub Desktop.
proposed change for edd-vat wp plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://support.cloudflare.com/hc/en-us/articles/200168236-What-does-CloudFlare-IP-Geolocation-do- | |
if ( apply_filters( 'edd_vat_use_cf_ip_header', false ) && ! empty( $_SERVER['HTTP_CF_IPCOUNTRY'] ) && 'XX' !== $_SERVER['HTTP_CF_IPCOUNTRY'] ) | |
{ | |
$this->ip_address_country = $_SERVER['HTTP_CF_IPCOUNTRY']; | |
return $this->ip_address_country; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment