Commit Graph

34012 Commits

Author SHA1 Message Date
Salva Machí 37d7d498ec Improved performance when saving variations
The serializeJSON function was causing a long delay when preparing the JSON if there are many input fields within the variations (even worse if 3rd party plugins add their own extra fields there too).
2020-01-10 11:38:38 +01: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 26e0b71fce Added support for mod_maxminddb's MM_COUNTRY_CODE server variable 2020-01-10 01:23:06 -08:00
Christopher Allford 0f6da046a1 Refactored the IP geolocation method 2020-01-10 00:08:24 -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 2df3af1e63 Deprecated the WC_Geolocation::get_local_database_path method 2020-01-09 21:31:12 -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 d45a3541f4 Removed the unnecessary GeoLite2 version check 2020-01-09 20:58:42 -08:00
Christopher Allford 0d4b8f4bd3 Added sanitization to the license key in download URLs 2020-01-09 20:44:13 -08:00
Christopher Allford 6af0edfd94 Added a deprecation notice for the GEOLITE2_DB constant 2020-01-09 16:21:33 -08:00
Christopher Allford 72a84911ea Simplified the URL generation for geolocation database downloads 2020-01-09 16:18:20 -08:00
Christopher Allford 7cdd19da3f Fixed the erroneous return in WC_Geolocation::get_local_database_path 2020-01-09 16:16:34 -08:00
Christopher Allford bf057927ae Moved the loading of integration classes into the WC_Autoloader 2020-01-09 15:46:01 -08:00
Renovate Bot 24b7a9a743
Update dependency stylelint-config-wordpress to v16 2020-01-09 14:41:16 +00:00
Rodrigo Primo dbb8ab8d1e
Merge pull request #25317 from woocommerce/renovate/stylelint-12.x
Update dependency stylelint to v12.0.1
2020-01-09 11:40:13 -03:00
Rodrigo Primo 8c6188fcf4
Merge pull request #25287 from woocommerce/renovate/eslint-6.x
Update dependency eslint to v6.8.0
2020-01-09 11:39:22 -03:00
Rodrigo Primo c3975d0317
Merge pull request #25281 from woocommerce/renovate/major-wordpress-monorepo
Update dependency @wordpress/e2e-test-utils to v4
2020-01-09 11:38:10 -03:00
Christopher Allford 98119047bf Added back the WC_Geolocation's get_local_database_path method since it was publicly used 2020-01-09 00:56:22 -08:00
Christopher Allford 3e597e6f68 Replaced the Geolocation database fetching functionality with MaxMind integration 2020-01-09 00:31:51 -08:00
Christopher Allford 000a75c23b Fixed the validation for MaxMind license keys 2020-01-08 22:56:24 -08:00
Christopher Allford f23c26a9f9 Fixed a permissions conflict caused by the dummy GeoLite2 archive's date
The test would fail if the web server had stored the data already!
2020-01-08 22:56:07 -08:00
Christopher Allford 95e59fc777 Made the database service class methods static for convenience \ 2020-01-08 21:59:04 -08:00
Christopher Allford 1eb49ef8b8 Added filterable support for fetching the database path
This replaces the corresponding geolocation class functionality. We are deprecating the woocommerce_geolocation_local_database_path filter in favor of the woocommerce_maxmind_geolocation_databse_path filter. Since we want the option to turn this into a feature plugin, it's wise to make sure nothing is too generic.
2020-01-08 21:48:05 -08:00
Christopher Allford 46d7f16b19 Added support for downloading and extracting the GeoLite2 database 2020-01-08 21:09:35 -08:00
Christopher Allford 45157ff4e1 Added a default integration settings page for managing MaxMind Geolocation services 2020-01-08 21:08:25 -08:00
Christopher Allford a477f9367d Added support for creating default integrations 2020-01-08 21:05:14 -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
Claudio Sanches 818cde0d1d
Merge pull request #25265 from woocommerce/revert-25263-revert-25259-update-renovate
Update Renovate bot configuration to update dev dependencies monthly
2020-01-07 14:02:59 -03:00
Claudio Sanches cb654ae065
Merge pull request #25368 from woocommerce/fix/25329
[Importer] Fix "invalid product type message" for variations
2020-01-07 13:18:29 -03:00
Claudio Sanches cd137915b8 Set correct post type for product variation
And catch any WC_Data_Exception
2020-01-06 21:36:54 -03:00
Claudio Sanches 3ebda4a431 Use WC_Data_Exception in WC_Product_Variation_Data_Store_CPT 2020-01-06 21:35:23 -03:00
Claudio Sanches 85a077b939 Coupon race condition prevention 2020-01-06 19:44:24 -03:00
Claudio Sanches 2ce4a60ff1
Remove old unit test 2020-01-06 19:37:47 -03:00
Renovate Bot bb51ec52f4
Update dependency commander to v4 2020-01-06 09:20:28 +00:00
Renovate Bot e3d95af13f
Update dependency mocha to v7 2020-01-04 19:09:11 +00:00
Christopher Allford c48ec2853e Corrected the format for the dev dependency schedule 2019-12-31 14:06:26 -08:00
Jeremy Pry 19684ceb6c
Add second parameter to `woocommerce_valid_order_statuses_for_payment` filter.
Everywhere the `woocommerce_valid_order_statuses_for_payment` filter is used, a second parameter is passed: the `WC_Order` object. This parameter was missed in #25158.

Omitting this parameter can cause errors in other extensions expecing that it will be present when hooking into the filter.
2019-12-31 15:13:50 -05:00
BrandynL 608d6628e3 added woocommerce specific css selector to avoid conflicts 2019-12-31 11:10:30 -05:00
Claudio Sanches b20ecc648e Bump version to 3.9.0-rc.2 2019-12-27 13:54:38 -03:00
Claudio Sanches 6b3ab50176
Merge pull request #25328 from woocommerce/fix/25313
Fixed missing assets/css/jquery-ui/jquery-ui.min.css
2019-12-27 12:48:35 -03:00
Claudio Sanches ede3a1612c Fixed missing assets/css/jquery-ui/jquery-ui.min.css 2019-12-27 12:45:22 -03:00
Claudio Sanches 603822a61e
Merge pull request #25327 from woocommerce/fix/woo-blocks-correct-version
update composer.lock to use the correct blocks version hash
2019-12-27 12:31:48 -03:00
Seghir Nadir 0c5f46ae10 update to correct blocks version hash 2019-12-27 14:32:01 +01:00
dependabot[bot] c933b818e0
Bump handlebars from 4.1.2 to 4.5.3
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-26 21:14:33 +00:00
Vedanshu Jain 6d8ca02ca5
Merge pull request #25195 from rodrigoprimo/travis-use-latest-php
Use latest PHP version to run Travis build jobs
2019-12-26 17:46:52 +05:30
Vedanshu Jain d76c5b734c
Merge pull request #25300 from woocommerce/fix/25274-docker-mount-dir
E2E Tests: mount directory instead of copy.
2019-12-26 17:36:14 +05:30
Vedanshu Jain 79680eff33
Merge pull request #25279 from woocommerce/fix-travis-configuration
Remove PHP 7.2 Travis build job from allow_failures list
2019-12-26 17:00:12 +05:30