Commit Graph

28 Commits

Author SHA1 Message Date
Romario 67a178f4f7 Replace 'DIRECTORY_SEPARATOR' with '/' 2020-08-26 15:50:34 -05:00
Romario 073c63c9c4 Replace dirname with __DIR__ and add DIRECTORY_SEPARATOR
Previously 'dirname(  __FILE__ )' was used to import files, however, the directory separator was missing.

This commit replaces 'dirname(  __FILE__ )' that was introduced in 5370d02484 with __DIR__  and added DIRECTORY_SEPARATOR
2020-08-21 15:16:26 -05:00
Romario 5370d02484 Change relative include paths to absolute include paths
Relative include paths in PHP can break whenever the server is running opcache.  As such, WordPress.com deploy system refuses to include WooCommerce because of that issue.

This commit changes the relative include paths to absolute include paths.

Relates to #27269
2020-08-20 15:32:04 -05:00
Claudio Sanches d48f1d4e2e Fixed package tag usage 2020-08-05 13:36:24 -03:00
Claudio Sanches 2ec4492074 Simplify MaxMind integration title 2020-01-29 13:43:27 -03:00
Claudio Sanches 8ee6337aea Move validation to the top 2020-01-22 12:39:19 -03:00
Claudio Sanches d9cc0910ef Trim whitespaces and strip slashes from MaxMind License Key 2020-01-22 12:38:10 -03:00
Christopher Allford a6981fc1c0 Added a file existence check to the MaxMind country lookup method to prevent warnings 2020-01-20 21:20:32 -08:00
Claudio Sanches 66fcc31f00 Updated MaxMind's license key field description 2020-01-20 13:18:52 -03:00
Claudio Sanches 92478b4739 Introduced woocommerce_maxmind_geolocation_update_database_periodically filter 2020-01-14 16:57:07 -03:00
Claudio Sanches 992e13fb08 Updated implementation of geolite2 2020-01-14 16:24:07 -03:00
Claudio Sanches b3b4e92fe1 Moved HTML to a single file 2020-01-14 12:20:46 -03:00
Christopher Allford 0f18570827 Added the database path to the integration page for documentation purposes 2020-01-13 21:02:22 -08:00
Christopher Allford 25dbc47da9 Added a note that the MaxMind integration will only do country lookups. 2020-01-13 14:43:00 -08:00
Christopher Allford 7a5083e47b Revert "Added a database option to allow for selecting different MaxMind databases"
This reverts commit d32c470cea.
2020-01-13 14:41:24 -08:00
Christopher Allford d32c470cea Added a database option to allow for selecting different MaxMind databases 2020-01-13 14:10:08 -08:00
Claudio Sanches f9d8b85c04 Remove notice when license key is present 2020-01-13 17:40:10 -03:00
Christopher Allford 4f6aec61fd Added support for a randomized MaxMind database file prefix 2020-01-13 08:16:44 -08:00
Claudio Sanches 91ec28f167 Updated integration ID and included methods to display notices 2020-01-10 15:02:11 -03:00
Claudio Sanches 8aa7e62a21 Fixed fatal error in system status page 2020-01-10 12:22:42 -03:00
Christopher Allford 93e1d606ed Fixed a bug where empty database paths might break the update 2020-01-10 02:47:23 -08:00
Christopher Allford 19ded6609d Refactored the MaxMind database class to not use static methods in order to make testing the integration class easier 2020-01-10 02:09:51 -08:00
Christopher Allford b7521368a7 Fixed the response for the geolocation filter 2020-01-10 00:07:55 -08:00
Christopher Allford bbbfc3bfab Moved the MaxMind geolocation lookup into the integration class 2020-01-09 23:46:25 -08:00
Christopher Allford 02ee3f695e Moved the database update from the WC_Geolocation class to the MaxMind-specific integration 2020-01-09 23:22:42 -08:00
Christopher Allford 6e41f370a5 Added a documentation link to the license key setting description 2020-01-09 21:39:28 -08:00
Christopher Allford f91ff82806 Moved the loading of the database class into the integration 2020-01-09 21:29:47 -08:00
Christopher Allford bf057927ae Moved the loading of integration classes into the WC_Autoloader 2020-01-09 15:46:01 -08:00