Claudio Sanches
774a54b8ee
Deprecated old WC_Geo_IP class
2018-03-15 17:23:40 -03:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Jon Surrell
e4d5886427
Replace log `tag` with log `source`
2016-12-29 11:58:43 +01:00
Jon Surrell
691c35e97b
Update logger calls
2016-12-29 11:58:42 +01:00
Mike Jolley
b5da116ed9
Fix check in dad7dcbf4b
2016-12-13 18:54:06 +00:00
Mike Jolley
dad7dcbf4b
Check IPV6 support and add log
...
Closes #12580
2016-12-13 12:35:25 +00:00
Aristeides Stathopoulos
734f284fa4
WordPress.PHP.YodaConditions.NotYoda
2016-09-08 01:32:24 +03:00
Aristeides Stathopoulos
ec8a0b288b
PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast
2016-08-27 05:08:49 +03:00
Mike Jolley
cfe28c9b25
Made WC_Logger pluggable via wc_get_logger function.
...
Closes #11474
2016-08-08 13:59:23 +01:00
Mike Jolley
66c61eebc8
Define full path for includes
...
Closes #11087
2016-07-27 11:58:43 +01:00
kilida
c502e363dd
Repeated subexpressions in class-wc-geo-ip.php
...
Looks like these two can be removed, they are already on line 1303 and 1304
```
|| ( $this->databaseType == self::GEOIP_CITY_EDITION_REV0_V6 )
|| ( $this->databaseType == self::GEOIP_CITY_EDITION_REV1_V6 )
```
2016-06-21 18:15:17 -04:00
Mike Jolley
459ed677a7
docs
2016-06-07 12:15:47 +01:00
Mike Jolley
a0c01d963b
Vars and docs
2016-06-06 18:18:26 +01:00
Fredrik Forsmo
398ab8a016
Add `public` keyword to public various methods
2016-04-26 19:26:56 +02:00
Fredrik Forsmo
890e117530
Improve docblock comments in WC_Geo_IP class
...
* Added comments to properties that don’t have any.
2016-01-06 16:07:58 +01:00
Shiva Poudel
f45d367d9f
Tweak docblocks in GeoIP class
2015-11-10 16:30:36 +05:45
Shiva Poudel
47489fb800
Use of single quotes
2015-11-10 16:10:19 +05:45
Shiva Poudel
33ad23f371
Improve help tip docblock and remove space
2015-11-10 07:13:53 +05:45
Claudio Sanches
c471a47910
Improved WC_Geo_IP logger
...
Removed not useful "GeoIP API: fseek failed" log messages
2015-11-09 22:58:22 -02:00
Claudio Sanches
770f6793fc
Check if WC_Logger exists before try to use in WC_Geo_IP class
2015-11-09 22:08:22 -02:00
Claudio Sanches
98abbf0184
Fixed fseek check in WC_Geo_IP class
2015-11-09 22:03:22 -02:00
David Anderson
b022769c2a
Prevent PHP notice
...
Prevents this PHP notice (on my localhost/testing setup):
PHP Notice: Undefined offset: -16776960 in wp
-content/plugins/woocommerce/includes/class-wc-geo-ip.php on line 1608
Note that the geoip_country_code_by_addr() method, a few lines further down, already makes a similar check to this one which is being added for IPv6.
2015-11-09 12:17:55 +00:00
Scrutinizer Auto-Fixer
08efaf84df
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-11-05 16:05:03 +00:00
Claudio Sanches
439141bbe3
Fixed undefined error on WC_Geo_IP
2015-11-03 13:55:26 -02:00
Claudio Sanches
c6ab828aa1
[2.4] Improved error handling in WC_Geo_IP
...
Implemented our log system to register in background any errors
Closes #9501
2015-11-03 12:30:33 -02:00
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
Claudio Sanches
ebcc3c1920
Fixed docblock typo
2015-07-16 16:57:42 -03:00
Claudio Sanches
8d2a98eab1
Improved some docblocks
2015-07-16 16:29:01 -03:00
Claudio Sanches
44dba5036c
Added geolocate IPv6 support, closes #8184
2015-05-26 14:41:13 -03:00
Nicola Mustone
d2af01df5b
scrutinizer suggested tweaks
2015-03-27 16:15:40 +01:00
Claudio Sanches
2dbfadd9fa
Improved the WC_Geo_IP removing some not useful const and vars
2015-02-13 10:28:51 -02: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