woocommerce/includes/rest-api/Controllers/Version3
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
..
class-wc-rest-controller.php Cover missed cases 2020-12-18 14:40:20 +05:30
class-wc-rest-coupons-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-crud-controller.php Fetch expensive fields only when required for performance 2020-12-18 14:40:20 +05:30
class-wc-rest-customer-downloads-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-customers-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-data-continents-controller.php Convert optional-before-required arguments to required. 2020-10-02 09:45:09 +02:00
class-wc-rest-data-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-data-countries-controller.php Convert optional-before-required arguments to required. 2020-10-02 09:45:09 +02:00
class-wc-rest-data-currencies-controller.php Convert optional-before-required arguments to required. 2020-10-02 09:45:09 +02:00
class-wc-rest-network-orders-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-order-notes-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-order-refunds-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-orders-controller.php Revert order and product controllers to use WP Post queries directly. 2021-01-07 16:47:54 +05:30
class-wc-rest-payment-gateways-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-posts-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-product-attribute-terms-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-product-attributes-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-product-categories-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-product-reviews-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-product-shipping-classes-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-product-tags-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-product-variations-controller.php Merge pull request #27299 from woocommerce/fix/27116 2020-10-05 09:33:50 -03:00
class-wc-rest-products-controller.php Revert order and product controllers to use WP Post queries directly. 2021-01-07 16:47:54 +05:30
class-wc-rest-report-coupons-totals-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-report-customers-totals-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-report-orders-totals-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-report-products-totals-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-report-reviews-totals-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-report-sales-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-report-top-sellers-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-reports-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-setting-options-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-settings-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-shipping-methods-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-shipping-zone-locations-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-shipping-zone-methods-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-shipping-zones-controller-base.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-shipping-zones-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-system-status-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-system-status-tools-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-tax-classes-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-taxes-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00
class-wc-rest-terms-controller.php Fix wrong caching of taxonomy in terms and attributes controllers. 2021-02-12 15:12:58 +01:00
class-wc-rest-webhooks-controller.php Fixed usage of package tag in REST API and templates 2020-09-17 11:56:08 -03:00