Commit Graph

37555 Commits

Author SHA1 Message Date
Nestor Soriano 4e195d5f3f Fix code sniffer errors. 2021-02-12 15:29:32 +01:00
Nestor Soriano 00d6dc40f7 Fix wrong caching of taxonomy in terms and attributes controllers.
The WC_REST_Terms_Controller and WC_REST_Product_Attributes_V1_Controller
classes have a get_taxonomy method that gets the name of the taxonomy
to process from a taxonomy id passed in the request, but once the
taxonomy name has been obtained it's cached and sbsequently reused.
The problem is that these controller instances are reused if more than
one request is processed programmatically, and thus the taxonomy that
was cached once is always used even if the new request specifies a
different taxonomy id.

The fix consists of using a dictionary of taxonomy id - taxonomy name
instead of one single taxonomy for caching.

In the case of WC_REST_Terms_Controller there's a protected $taxonomy
property that needs to be kept for compatibility, it's now set to
the last taxonomy name that has been introduced in the dictionary.
2021-02-12 15:12:58 +01:00
Roy Ho b691947442
Merge pull request #29111 from woocommerce/update/woocommerce-admin/2.0.1
Update woocommerce admin package to 2.0.1
2021-02-11 20:49:18 -08:00
Paul Sealock 13760d55a9 compser artifacts 2021-02-12 15:09:02 +13:00
Paul Sealock d2a71e3a11 bump to 2.0.1 2021-02-12 15:07:58 +13:00
Roy Ho 520c39dda2
Merge pull request #29016 from woocommerce/update/woocommerce-blocks-4.4.0
Update WooCommerce Blocks package to 4.4.x
2021-02-11 11:31:44 -08:00
Mike Jolley 11587a07b1 Blocks 4.4.3 2021-02-11 18:11:25 +00:00
Mike Jolley 38ad7819df Bump to 4.4.2 2021-02-11 17:19:41 +00:00
Mike Jolley ff9d8e2b51 Cmposer update after rebase 2021-02-11 17:19:15 +00:00
Mike Jolley 78ae2ad7c0 4.4.1 2021-02-11 17:19:00 +00:00
Mike Jolley 56e3d8339b Update lock files 2021-02-11 17:19:00 +00:00
Mike Jolley 17147d59e1 bump blocks version to 4.4.0 2021-02-11 17:19:00 +00:00
Matt Sherman 9f00fbfde1
Move admin menu manipulation from admin_head to admin_menu (#29088) 2021-02-11 11:48:36 -05:00
Roy Ho b9d68c3f67
Merge pull request #29100 from woocommerce/update/5.0-changelog
5.0 changelog
2021-02-11 07:28:01 -08:00
Claudio Sanches da90e678c4 5.0 changelog 2021-02-11 12:24:32 -03:00
Roy Ho 2641bb7b6f
Merge pull request #28627 from woocommerce/update/tracks/global-props
Tracks: Add woo version as global track prop.
2021-02-11 05:48:25 -08:00
Néstor Soriano 9105910234
Merge pull request #28950 from woocommerce/exporter_product_type_filter
Add filter to allow third-parties to filter exportable product types
2021-02-11 14:32:17 +01:00
Vedanshu Jain 5a707f3e74
Merge pull request #28849 from woocommerce/fix/27521-2
Verify country code on checkout
2021-02-11 18:59:04 +05:30
Roy Ho 78851e6945
Merge pull request #28980 from leewillis77/add/add-generation-date-to-status-report
Add time of generation to the system status report
2021-02-11 05:09:03 -08:00
Roy Ho 986b4fe0b9
Merge pull request #29089 from woocommerce/fix/issue-29087
Type cast floats to prevent string addition errors in PHP 8 closes #2…
2021-02-10 19:16:53 -08:00
Greg 6d16e6831a
Merge pull request #29064 from woocommerce/add/e2e-merchant-order-customr-payment-page
Add e2e test: merchant order customer payment page
2021-02-10 16:01:47 -07:00
Claudio Sanches 734f54c0fb
Merge pull request #29070 from woocommerce/enhancement/28924
Add CI for code coverage and code sniff on GitHub actions.
2021-02-10 19:50:13 -03:00
Claudio Sanches 69c5d428a2
Merge pull request #29095 from woocommerce/fix/conditional-wc-admin
Check if WC Admin is active before showing message
2021-02-10 19:45:34 -03:00
Roy Ho 84c1e64a1d
Merge pull request #29036 from mehul0810/issue/28992
Removed extra closing brace ) from the Zone regions help text.
2021-02-10 13:52:33 -08:00
roykho 315c4de5c3
Check if WC Admin is active before showing message 2021-02-10 13:21:35 -08:00
Greg dcbbde1ce6
Merge pull request #29082 from woocommerce/e2e/e2e-fix-flaky-cart-coupons-test
Make cart coupons test more granular
2021-02-10 12:57:35 -07:00
Ron Rennick cd8826e85f
Merge pull request #29037 from woocommerce/packages/update-e2e-docs
Update E2E docs
2021-02-10 15:29:41 -04:00
roykho 93e528f8ea
Type cast floats to prevent string addition errors in PHP 8 closes #29087 2021-02-10 10:06:25 -08:00
Veljko 389075256c Merge branch 'master' into e2e/e2e-fix-flaky-cart-coupons-test 2021-02-10 14:00:14 +01:00
Veljko f3b18880f0 Add waits to avoid flakiness 2021-02-10 13:22:04 +01:00
Veljko c7cf42020f Remove unnecessary code from test 2021-02-10 12:29:56 +01:00
Vedanshu Jain 6b862e12e5
Merge pull request #28940 from woocommerce/install-e2e-only-explicitly
Improve the WooCommerce build process
2021-02-10 16:26:04 +05:30
Veljko c27aa94a80 Updated cart coupons test 2021-02-10 11:51:08 +01:00
Nestor Soriano e82ab487b6 validate_posted_data: check if we actually need to validate the shipping country. 2021-02-10 10:05:24 +01:00
zhongruige 5d228cc4ab Code review feedback 2021-02-09 13:35:20 -07:00
vedanshujain 4a39b00a2e Run build action only for WC PRs because forks wont have permission to post comment. 2021-02-09 16:20:00 +05:30
vedanshujain 8963755442 Use bash instead of sh 2021-02-09 16:15:48 +05:30
vedanshujain 3e0fc5e89b Add CI for code coverage and code sniff on GitHub actions. 2021-02-09 16:09:56 +05:30
Nestor Soriano 87d04b8d64 Remove no longer relevant exception doc comment 2021-02-09 10:07:43 +01:00
zhongruige dfeea59f6b Minor wording change 2021-02-08 17:03:19 -07:00
zhongruige b52c31063f Added new tests for customer order page in the merchant orders flow 2021-02-08 17:01:21 -07:00
Ron Rennick c477644d2d
Merge pull request #28906 from woocommerce/package/utils/update/factory-dependency
@woocommerce/e2e-utils: updated fishery to 1.2
2021-02-08 19:03:52 -04:00
Greg 73c2eb20a0
Merge pull request #29060 from woocommerce/packages/ignore-default-json
allow env default.json to be untracked in git
2021-02-08 15:58:04 -07:00
Greg 36c9e951e5
Merge pull request #29059 from woocommerce/fix/e2e/get-app-name
fix import in get-app-name.js
2021-02-08 15:00:38 -07:00
Ron Rennick 493a8934be Merge branch 'master' into package/utils/update/factory-dependency 2021-02-08 16:51:02 -04:00
Ron Rennick 099b1c486a allow env default.json to be untracked in git 2021-02-08 16:12:10 -04:00
Ron Rennick d2fd592819 fix import in get-app-name.js 2021-02-08 15:57:58 -04:00
Claudio Sanches 81cdb4df94
Merge pull request #29057 from woocommerce/update/jetpack-autoloader
Updated the Jetpack Autoloader to 2.9.1
2021-02-08 16:09:24 -03:00
Claudio Sanches 926af1d3c3
Merge pull request #29054 from Dan-Q/master
Change color of WooCommerce logo from old to new purple
2021-02-08 15:54:31 -03:00
Christopher Allford 2a1c322cbc Updated the autoloader to 2.9.1 2021-02-08 10:43:48 -08:00