Commit Graph

9 Commits

Author SHA1 Message Date
Christopher Allford 27bcba1ac7 Added a deprecation to the old Geolite library wrapper class' public methods 2020-01-14 13:44:41 -08:00
Christopher Allford bbbfc3bfab Moved the MaxMind geolocation lookup into the integration class 2020-01-09 23:46:25 -08:00
Christopher Allford 300064187b Moved the MaxMind DB Reader library into composer and pinned the latest version 2020-01-07 15:25:58 -08:00
Rodrigo Primo 2c8d006c37 Update PHPCompatibility sniff names
The name of some sniffs changed in the most recent PHPCompatiblity version. This commit update all instances where those names are used in WooCommerce codebase.
2018-11-21 11:08:26 -02:00
Rodrigo Primo b917522160 typo 2018-06-22 10:13:12 -03:00
Rodrigo Primo df3306084e Check if array index exists before using it
WC_Geolite_Integration::get_country_iso() sometimes returns null instead of an array, so this commit adds a check to account for that possibility before using the returned value. Doing this to prevent the following undefined index notice:

PHP Notice: Undefined index: country in wp-content/plugins/woocommerce/includes/class-wc-geolite-integration.php on line 60

Fixes #20594
2018-06-22 10:13:12 -03:00
Claudio Sanches 827d957d66 Load GeoLite2 Reader when creating a new instance of WC_Geolite_Integration 2018-03-15 17:30:17 -03:00
Claudio Sanches 4e9c8f2590 Updated GeoLite2 Reader errors to warning level 2018-03-14 16:03:31 -03:00
Claudio Sanches 7f6f4b848d Created WC_Geolite_Integration class to handle with GeoLite2 integration 2018-03-14 13:57:07 -03:00