Commit Graph

31 Commits

Author SHA1 Message Date
Mike Jolley 66c61eebc8 Define full path for includes
Closes #11087
2016-07-27 11:58:43 +01:00
Mike Jolley 56520cd8bc Allow geo ip to be filtered
Closes #11066
2016-06-08 12:18:09 +01:00
Mike Jolley cb27af14c4 Status page geoip database 2016-03-30 13:11:26 +01:00
Mike Jolley dbfba48411 Disable API fallback for geolocating customers
Causes server slowdown due to external calls. Should be off by default.
Closes #10615
2016-03-30 13:02:21 +01:00
Mike Jolley d18e1eb115 woocommerce_geolocation_local_database_path filter 2016-03-30 12:58:50 +01:00
Mike Jolley e09613d7da get_external_ip_address docblock 2016-02-26 13:34:51 +00:00
Shiva Poudel 70496e5864 Tweak missing fallback param in geolocate_ip 2015-11-11 06:19:01 +05:45
Claudio Sanches 5893875b0c Removed period for file headers 2015-11-03 11:53:50 -02:00
Claudio Sanches ee30b5b308 Fixed php docs standards 2015-11-03 11:31:20 -02:00
Mike Jolley afbfd2b913 Tweak gzread 2015-07-15 16:37:29 +01:00
Claudio Sanches 9eb3b6ddf9 Changed all requests with wp_remote_* to wp_safe_remote_* 2015-06-01 13:28:55 +01:00
Claudio Sanches 1caa5ebcee Improved WC_Geolocation support for IPv6 #8184 2015-05-26 17:32:47 -03:00
Claudio Sanches 44dba5036c Added geolocate IPv6 support, closes #8184 2015-05-26 14:41:13 -03:00
Mike Jolley 470b259a8a Don't download GeoIP Database until geolocation option is enabled in settings. 2015-02-18 12:53:24 +00:00
Mike Jolley 81b7ed934e Call Logger before logging errors 2015-02-17 16:20:26 +00:00
Mike Jolley d1c19d5782 Check for GZIP support 2015-02-17 16:19:33 +00:00
Mike Jolley e1cb2c454b Remove ip-api at their request Closes #7443 2015-02-16 10:25:13 +00:00
Claudio Sanches 3a9e459b2c Created WC_Geo_IP_Record class 2015-02-11 15:57:16 -02:00
Claudio Sanches 5389dc3812 Created WC_Geo_IP class 2015-02-11 15:51:50 -02:00
Mike Jolley c46f7f236d When the geolocation database cannot download, ensure the correct method is used to log the error. 2015-02-11 16:47:52 +00:00
Mike Jolley bc2af10cc6 Update languages and geolocation when installed 2015-02-11 14:38:55 +00:00
Gerhard 2339f5aee9 Better proxy server support for get_ip_address 2015-02-11 12:07:12 +02:00
James Collins 7e20fb9a3d Use wc_clean to trim and sanitize external IP
As per suggestion from @claudiosmweb, wc_clean() is more full featured than trim().

See #7335
2015-02-10 07:54:26 +08:00
James Collins b5cc22e8f5 Geolocation: strip whitespace when obtaining external IP
The "ip.appspot" service returns an IP address plus a  new line character in its response.

An example response from "ip.appspot" is:

```123.123.123.123\n```

This fix strip whitespace from the response before proceeding.
2015-02-09 14:00:05 +08:00
Mike Jolley 2809986fcf Dead var 2015-02-03 14:56:01 +00:00
Mike Jolley 9299f3e0b2 Check remote_addr is set 2015-01-05 10:57:21 +00:00
Mike Jolley 5ee068071f Support HTTP_CF_IPCOUNTRY 2015-01-01 12:43:49 +00:00
Mike Jolley 932263cf0a Check for geoiprecord class 2015-01-01 12:41:04 +00:00
Mike Jolley caac9768a7 Added more fallbacks for API geoIP 2014-12-30 11:11:17 +00:00
Mike Jolley 4e8e90a8de Support dev environment 2014-12-23 22:03:10 +00:00
Mike Jolley f561aa4224 Geolocation class 2014-12-23 18:49:37 +00:00