Commit Graph

37990 Commits

Author SHA1 Message Date
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
Veljko 7b42416718 Improve test and add new scenarios 2021-02-12 11:18:25 +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
Takashi Kitajima 307a257781
Add translator comment #29008 2021-02-12 11:55:26 +09: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
Veljko e724f21f6d Update changelog and readme 2021-02-11 19:11:58 +01:00
Mike Jolley 11587a07b1 Blocks 4.4.3 2021-02-11 18:11:25 +00:00
Veljko 58b564f1cb Add new component for shipping zones 2021-02-11 19:05:50 +01: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
Fernando Marichal 15424c99d6 Merchant email notes now are turned off by default
This commit turns off the merchant email notes by default
2021-02-11 14:15:17 -03:00
Matt Sherman 9f00fbfde1
Move admin menu manipulation from admin_head to admin_menu (#29088) 2021-02-11 11:48:36 -05:00
Veljko 8891509478 Add new e2e test merchant shipping zones
In progress still
2021-02-11 17:47:58 +01: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
Veljko 01850a9cec Merge branch 'master' into e2e-shopper-browse-search-sort 2021-02-11 15:03:31 +01:00
Veljko c09a151392 Merge branch 'master' into e2e-shopper-browse-search-sort 2021-02-11 15:02:34 +01: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
Veljko fff3904bbb Add new page utils and update coupon tests 2021-02-11 10:30:39 +01:00
Nestor Soriano fae00e2bdf Make the refunds creation REST API behave more as documented
- Allow the list of line items to be a non-associative array
  where each item is identified by an "id" field
- Same for taxes inside line items, specify amount to refund in
  a "refund_total" key as in the case of line items
- Allow "quantity" keys as synonyms of "qty"

Also calculate "amount" automatically if missing and when all the
line items and taxes have a valid "refund_total" key.
2021-02-11 09:51:13 +01:00
Veljko V c755b5d0a7
Merge branch 'master' into e2e-shopper-pay-order 2021-02-11 09:13:52 +01:00
Veljko V 56cb17c9f7
Merge branch 'master' into e2e-shopper-browse-search-sort 2021-02-11 09:05:21 +01: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
Veljko 5a09000058 Merge branch 'master' into e2e-shopper-browse-search-sort 2021-02-10 22:31:42 +01:00
Veljko 1023075b75 Merge branch 'master' into e2e-shopper-pay-order 2021-02-10 22:30:55 +01:00
roykho 315c4de5c3
Check if WC Admin is active before showing message 2021-02-10 13:21:35 -08:00
Lourens Schep 5c6331593a Remove unnecessary wp-admin from urls 2021-02-10 16:42:04 -04:00
Matt Sherman cca38a577e Use SVG instead of CSS/font for WooCommerce icon 2021-02-10 15:12:47 -05:00
zhongruige 0fea99f6be Merge branch 'master' of github.com:woocommerce/woocommerce into add/e2e-merchant-product-views 2021-02-10 12:59:13 -07:00
zhongruige 27599e82cb Merge branch 'master' of github.com:woocommerce/woocommerce into add/e2e-shopper-variable-product-updates 2021-02-10 12:58:17 -07: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
Lourens Schep 2db09d410b Change widget stock links to new analytics page when wc_admin is not disabled 2021-02-10 15:04:04 -04:00
zhongruige 8f81ded6c0 Added new tests for shopper variable product updates 2021-02-10 11:27:50 -07:00
roykho 93e528f8ea
Type cast floats to prevent string addition errors in PHP 8 closes #29087 2021-02-10 10:06:25 -08:00
zhongruige 642c3aa40f Merge branch 'master' of github.com:woocommerce/woocommerce into add/e2e-merchant-product-views
# Conflicts:
#	tests/e2e/core-tests/CHANGELOG.md
#	tests/e2e/utils/README.md
2021-02-10 09:19:14 -07: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