Commit Graph

37192 Commits

Author SHA1 Message Date
Reüel van der Steege 97456e7d78 Add order meta `is_vat_exempt` with unique meta key. 2020-01-20 12:06:32 +01:00
Rodrigo Primo 1ca791f8f2
Merge pull request #25343 from BrandynL/pwform-visibility-classfix
added woocommerce specific css selector to password visibility toggle to avoid conflicts
2020-01-17 15:01:57 -03:00
Jeff Stieler 6fed13a651 Fix WP global override. 2020-01-17 10:48:47 -07:00
Jeff Stieler ee56177896 Fix unit tests.
Only require autoloader in uninstall if WooCommerce Admin class hasn't been loaded.
2020-01-17 10:32:17 -07:00
Rodrigo Primo 4e58f77575
Merge pull request #25322 from woocommerce/pr-25242
Prevent fatal error in set_current_gateway with no WC session
2020-01-17 09:54:03 -03:00
Rodrigo Primo f0ccd9bd50
Merge pull request #25395 from woocommerce/fix/25394
Check for the WooCommerce Admin class before adding notice
2020-01-17 09:52:38 -03:00
Christopher Allford 82cecbc6e8 Merge branch 'master' into refactor/23783 2020-01-16 17:18:23 -08:00
Jeff Stieler 4b1ccc4d15 Fix wc_admin_daily event schedule persistence.
Avoid an option update race condition.
2020-01-16 17:44:07 -07:00
Jeff Stieler c061e1f272 Load the WooCommerce Admin install class during uninstallation. 2020-01-16 17:43:49 -07:00
Jeff Stieler c40a14fc22 Alias a branch of wc-admin instead. 2020-01-16 17:43:49 -07:00
Paul Sealock 71a8270a18 cleanup 2020-01-16 17:41:46 -07:00
Paul Sealock 7987abfd1e phpcs errors 2020-01-16 17:41:46 -07:00
Paul Sealock 6c9e78850a wc-admin: Include package 2020-01-16 17:40:30 -07:00
Kathy Daring bcb17b62c2 Add support for placeholders in quantity inputs
(cherry picked from commit 99eb5074f3)
2020-01-16 12:47:15 -07:00
Rodrigo Primo 8489d1bd33 Merge branch 'master' into fix/25394 2020-01-16 16:35:43 -03:00
Rodrigo Primo 2668bf6025
Merge pull request #25314 from woocommerce/fix/24746
Removed the lowercase conversion of product search terms
2020-01-16 16:29:07 -03:00
Rodrigo Primo 289c932d17
Merge pull request #25319 from michaelignacio/fix/25226
Fix missing closing tag (#25226)
2020-01-16 16:11:40 -03:00
Rodrigo Primo 5a7075813c
Merge pull request #25344 from woocommerce/bug/valid_order_status_filter
Add second parameter to `woocommerce_valid_order_statuses_for_payment` filter.
2020-01-16 16:01:09 -03:00
Rodrigo Primo 8aad482bc1 Fix typo 2020-01-16 15:31:50 -03:00
Rodrigo Primo cb85c981ac Merge branch 'master' into pr-25242 2020-01-16 15:30:58 -03:00
Rodrigo Primo 3fd6a66229
Merge pull request #25405 from woocommerce/fix/25385
Use wp_mail() default args in WC_Email
2020-01-16 15:23:30 -03:00
Rodrigo Primo 0e43d676f5
Merge pull request #25334 from woocommerce/renovate/eslint-plugin-jest-23.x
Update dependency eslint-plugin-jest to v23.6.0
2020-01-16 15:08:22 -03:00
Rodrigo Primo f5a5cec28b
Merge pull request #25366 from woocommerce/renovate/phpunit-phpunit-7.x
Update dependency phpunit/phpunit to v7.5.20
2020-01-16 14:55:39 -03:00
Rodrigo Primo c230540c7e
Merge pull request #25362 from woocommerce/renovate/mocha-7.x
Update dependency mocha to v7
2020-01-16 14:53:45 -03:00
Rodrigo Primo 0acb6c5f0e
Merge pull request #25340 from woocommerce/renovate/stylelint-config-wordpress-16.x
Update dependency stylelint-config-wordpress to v16
2020-01-16 14:52:34 -03:00
Renovate Bot 8a3887d70e
Update dependency eslint-plugin-jest to v23.6.0 2020-01-16 17:52:11 +00:00
Rodrigo Primo 9e6bfc7051
Merge pull request #25282 from woocommerce/renovate/commander-4.x
Update dependency commander to v4
2020-01-16 14:50:55 -03:00
Renovate Bot f81afa0794
Update dependency phpunit/phpunit to v7.5.20 2020-01-16 00:58:45 +00:00
Claudio Sanches 7d03c6bcdb
Merge pull request #25412 from woocommerce/update/3.9.0-rc.3
Version 3.9.0-rc.3
2020-01-15 21:18:49 -03:00
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
Claudio Sanches 78ccf4d4c6 Version 1.0.6 2020-01-15 20:29:39 -03:00
Siriwat Uamngamsup 43b9f9f07d Fixed wrong route path for shipping zone api 2020-01-15 20:26:38 -03:00
Claudio Sanches ea36caf17e Removed MaxMind from System Status 2020-01-15 20:26:12 -03:00
Rodrigo Primo e325eafc9a Remove image after unit tests to make sure they pass on Travis
The test
WC_Tests_API_Functions::test_wc_rest_upload_image_from_url_should_download_image_and_return_array()
was failing on Travis with the error below due images being kept on
accros different tests. To fix this problem, this commit makes sure that
every test that creates an image, removes it after the assertions.

```
1) WC_Tests_API_Functions::test_wc_rest_upload_image_from_url_should_download_image_and_return_array

Failed asserting that two arrays are equal.

--- Expected
+++ Actual

@@ @@

 Array (
-    'file' => '/tmp/wordpress/wp-content/uploads/2020/01/Dr1Bczxq4q.png'
-    'url' => 'http://example.org/wp-content/uploads/2020/01/Dr1Bczxq4q.png'
+    'file' => '/tmp/wordpress/wp-content/uploads/2020/01/Dr1Bczxq4q-3.png'
+    'url' => 'http://example.org/wp-content/uploads/2020/01/Dr1Bczxq4q-3.png'

/home/travis/build/woocommerce/woocommerce-rest-api/unit-tests/Tests/Version3/functions.php:113
```

(https://travis-ci.org/woocommerce/woocommerce-rest-api/jobs/634921426#L719)
2020-01-15 20:25:02 -03:00
Rodrigo Primo 10f55dbff4 Fix unit test suite in the Travis build jobs
This commit fixes a problem in the script that configures the
environment to run the unit tests in the Travis build jobs. The script
was not running `composer install` in the WooCommerce directory, leaving
it installation incomplete and thus the tests were failing.

To fix this problem, this commit adds a call to `composer install` right
after WooCommerce is downloaded in the setup script
(`unit-tests/bin/install.sh`).
2020-01-15 20:22:29 -03:00
Claudio Sanches 4ea0e73909 Fixed logic and removed old variable 2020-01-15 20:21:25 -03:00
Claudio Sanches c55b49194b Fixed coding standards 2020-01-15 20:21:25 -03:00
Claudio Sanches d133875e5d Keep backwards compatibility 2020-01-15 20:21:25 -03:00
Claudio Sanches 06ec2fd9c6 Set correct type 2020-01-15 20:21:25 -03:00
Claudio Sanches 19b7e278ac Fixed schema 2020-01-15 20:21:25 -03:00
Claudio Sanches 7eded142c7 Remove extra loop 2020-01-15 20:21:25 -03:00
Rodrigo Primo 64f09329dd Add unit test to test filtering by field when getting system status 2020-01-15 20:21:25 -03:00
Rodrigo Primo 0cfbc27a27 Simplify and speedup WC_Tests_REST_System_Status tests
This implements two changes to WC_Tests_REST_System_Status test class:

- It simplifies the tests by setting the user in the setUp method
instead of in each test.
- Improves the performance of the tests by creating a new admin user
only once when the class is instantiated instead of once for every
single test that is executed.
2020-01-15 20:21:25 -03:00
Claudio Sanches bc0acf60b8 Improved logic to only try remote requests if necessary 2020-01-15 20:21:25 -03:00
Claudio Sanches 4342ae2b6f Prevent wp_remote_post or wp_remote_get to trigger when not necessary 2020-01-15 20:21:25 -03:00
Claudio Sanches b4125269a3 Updated WC_REST_Controller::get_fields_for_response() 2020-01-15 20:21:25 -03:00
Claudio Sanches 361326d7f0 Fixed type numeric type on products and variations schema 2020-01-15 20:18:20 -03:00
Claudio Sanches b8763fd3e4 Added unit tests for instance_id 2020-01-15 20:17:36 -03:00