Claudio Sanches
28718614d7
Version 3.9.0-rc.3
2020-01-15 21:17:57 -03:00
Claudio Sanches
bccb93fa3c
Merge pull request #25378 from woocommerce/fix/25361
...
Add license key support to MaxMind GeoLite2 database downloads
2020-01-15 20:51:14 -03:00
Claudio Sanches
eedf82da38
Fixed coding standards
2020-01-15 20:40:55 -03:00
Christopher Allford
e56e5dfc50
Pushed the first woocommerce_geoip_updater execution to fifteen days in the future
...
This will prevent the routine from deleting the pre-update archive that we just moved in the previous update routine.
2020-01-15 10:25:51 -08:00
Christopher Allford
2b503e0409
Changed the MaxMind database update process to move the existing archive instead of deleting it
2020-01-15 10:24:13 -08:00
Claudio Sanches
ee30dbbcf7
Merge pull request #25369 from woocommerce/renovate/husky-4.x
...
Update dependency husky to v4
2020-01-15 14:13:29 -03:00
Claudio Sanches
b3edca585d
Merge pull request #25324 from woocommerce/dependabot/npm_and_yarn/handlebars-4.5.3
...
Bump handlebars from 4.1.2 to 4.5.3
2020-01-15 14:12:59 -03:00
Claudio Sanches
d9c22d60be
Use wp_mail() default args in WC_Email
2020-01-15 13:33:12 -03:00
Renovate Bot
875c7f341b
Update dependency husky to v4
2020-01-15 15:07:53 +00:00
Claudio Sanches
cf7864b91c
Merge pull request #25403 from woocommerce/fix-unit-test
...
Fix failing unit test due to change in WP nightly
2020-01-15 11:59:10 -03:00
Rodrigo Primo
793dba81f1
Fix failing unit test
...
This commit fixes the unit test
WC_Tests_API_Functions::test_wc_rest_upload_image_from_url_should_return_error_when_invalid_image_is_passed() which was failing due to a change in a WordPress core message with the following error:
```
2) WC_Tests_API_Functions::test_wc_rest_upload_image_from_url_should_return_error_when_invalid_image_is_passed
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Invalid image: File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.'
+'Invalid image: File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini file or by post_max_size being defined as smaller than upload_max_filesize in php.ini.'
/home/travis/build/woocommerce/woocommerce/tests/unit-tests/util/api-functions.php:89
```
(https://travis-ci.org/woocommerce/woocommerce/jobs/637353161#L402 )
This test only fails when using WordPress nightly build (the yet to be
released WP 5.4).
To fix this problem, this commit adds an if statement to check for different error
messages depending on the WordPress version that is being used to run
the tests. In the future, we might want to refactor this test to remove
its dependency to a WordPress error message to make it more robust and
stable.
2020-01-15 11:17:49 -03:00
Claudio Sanches
5bafac3012
Improved maxmind_missing_license_key_notice logic
2020-01-14 23:32:55 -03:00
Christopher Allford
42269f965c
Added clarification that the MaxMind license key is not strictly necessary
2020-01-14 14:09:51 -08:00
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
c34a5b6ffe
Added an update task to increase the database version
2020-01-14 13:39:47 -08:00
Christopher Allford
1ac8eebac3
Added clarity to the file path in the integration settings
2020-01-14 13:32:59 -08:00
Christopher Allford
e851160927
Removed the erroneous space on the woocommerce_geoip_updater scheduled event
2020-01-14 13:20:41 -08:00
Rodrigo Primo
241c6cd590
Make context for admin notice documentation more clear
2020-01-14 17:07:12 -03:00
Claudio Sanches
92478b4739
Introduced woocommerce_maxmind_geolocation_update_database_periodically filter
2020-01-14 16:57:07 -03:00
Rodrigo Primo
efb200799d
Merge branch 'fix/25361' of github.com:woocommerce/woocommerce into fix/25361
2020-01-14 16:47:06 -03:00
Rodrigo Primo
23e1abe1dc
Fix typo in php docblock
2020-01-14 16:45:57 -03:00
Claudio Sanches
f9c31589c6
Fixed conditional code
2020-01-14 16:44:01 -03:00
Claudio Sanches
10cdbf88be
Use shop base address as default customer location
2020-01-14 16:29:48 -03:00
Claudio Sanches
992e13fb08
Updated implementation of geolite2
2020-01-14 16:24:07 -03:00
Claudio Sanches
46110fa39c
Introduced woocommerce_get_geolocation filter
2020-01-14 15:54:24 -03:00
Claudio Sanches
978c5b5fb9
Apply woocommerce_maxmind_geolocation_display_notices filter in notices class
2020-01-14 15:22:53 -03:00
Claudio Sanches
4c39f81f12
Merge pull request #25386 from woocommerce/fix/is_package_shippable
...
Make WC_Shipping::is package shippable less strict
2020-01-14 14:30:17 -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
b577b8a386
Changed the geoip update cron to run every 15 days to better comply with MaxMind's TOS
2020-01-13 17:02:41 -08:00
Claudio Sanches
1c874264d8
Removed MaxMind from System Status page
2020-01-13 21:48:23 -03: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
ef0eccf0ac
Added upgrade step for removing the legacy MaxMind database
2020-01-13 11:18:14 -08:00
Christopher Allford
48d819ebeb
Added support for non-standard upload folder paths
2020-01-13 11:00:23 -08:00
Christopher Allford
6d3a3053c5
Moved the database file into the woocommerce_uploads folder
2020-01-13 08:53:43 -08:00
Christopher Allford
645affb7f3
Removed permanently failing unit test for deprecated GeoLite2 library integration
2020-01-13 08:17:11 -08:00
Christopher Allford
4f6aec61fd
Added support for a randomized MaxMind database file prefix
2020-01-13 08:16:44 -08:00
Joshua Flowers
902e1cc184
Check for the WooCommerce Admin class before adding notice
2020-01-13 17:43:27 +08:00
vedanshujain
f0f3b21a36
Added unit tests for setting current gateway
2020-01-13 14:18:59 +05:30
Joel Rowley
d6771dc681
Prevent fatal error in set_current_gateway with no WC session
2020-01-13 14:18:49 +05:30
Christopher Allford
f5d07c954c
Adjusted the MaxMind license key notice to be clearer
2020-01-10 13:07:26 -08:00
Claudio Sanches
f253c87096
Fixed unit tests
2020-01-10 17:14:44 -03:00
Claudio Sanches
107720dc08
Make is_package_shippable less strict
2020-01-10 17:05:28 -03:00
Claudio Sanches
49aed6f6ca
Remove alternatives for deprecated methods
2020-01-10 16:31:27 -03:00
Claudio Sanches
c3abe8ac65
Added missing license key notice and triggers
2020-01-10 15:07:05 -03:00
Claudio Sanches
48547143f4
Fixed integration ID
2020-01-10 15:02:56 -03:00
Claudio Sanches
91ec28f167
Updated integration ID and included methods to display notices
2020-01-10 15:02:11 -03:00