Weโre excited to announce that WooCommerce 5.2 is now released! This is the third minor release of 2021 and has
- 456 commits from 27 contributorsย in WooCommerce core.
- 109 commits from 25ย contributorsย in the WooCommerce Admin package.
- 148 commits from 15 contributorsย in the WooCommerce Gutenberg Products Block package.
This is a minor release, which means everything is backward compatible with the previous version.
As always, we recommend creating a backup of your site and making sure that themes and plugins are compatible before updating. You can check outย this update guideย for more information.
Whatโs new in 5.2?
- WooCommerce Blocks 4.7:ย Blocks package has been updated to 4.7.ย Please take a look at the release posts forย 4.7,ย 4.6,ย 4.5.2ย andย 4.5.1ย to see whatโs new and improved.
- WooCommerce Admin 2.1.5:ย WooCommerce Admin package has also been updated to 2.1.5 with this release of WooCommerce. This new package contains lots of bug fixes and stability improvements. Changes (also for the intermediate versions up to 2.0.3) can be foundย hereย (for 2.1.5 itself, the changes are some tweaks on the store setup wizard based on the country where the shop is located).
Notable fixes and improvements
- Fix for the country code verification on checkout:ย WooCommerce 5.1 introduced an extra check so that itโs not possible to perform a successful checkout when submitting an invalid country code, but that introduced a bug that caused aย โ is not a valid countryย error in some circumstances, for example when using PayPal checkout. Fixed inย #29606.
- Low stock threshold for variations:ย The stock amount that triggers a low stock warning email can now be properly configured for individual variations on variable products.ย #29345
- Dropdowns fix:ย With the updated version of jQuery on the newest WordPress some dropdowns (e.g. product attributes filter) became unusable, itโs fixed now.ย #29397
- Product categories widget item count fix:ย The items count in theย product categories widget item count not always showing the correct number, itโs fixed now. Also, a new hook has been added to disable the recounting of items.ย #29281
- New shop setup widget:ย A new โWooCommerce Setupโ widget is added to promote users to finish the onboarding tasks, it shows only when there are unfinished tasks.ย #29174
- Updated net sales link:ย The โnet salesโ link in the dashboard now points to the new analytics screen when WooCommerce Admin is enabled.ย #29149
- Improved handling of downloadable file paths:ย Stripย
///
ย sequences in downloadable file paths to prevent access to absolute paths.ย #28699 - REST API: Add support for โorderโ and โclassโ types for shipping method zones:ย The shipping method zone endpoint wasnโt accepting settings of these types, itโs fixed now.ย #29218
- REST API: Fix wrong taxonomy caching in term and product attributes controllers:ย The taxonomy from the first request was being reused in further requests when those were performed programmatically.ย #29115
- REST API: Make the refunds creation endpoint accept input as documented:ย The input for the endpoint accepts now the input as described in the documentation (no breaking changes introduced).ย #29099
You can find the complete changelog forย this release in the changelog.txt file.
Filters and actions
We have added two new filters in this release.
Filter | Description |
woocommerce_product_recount_terms | Filter to allow/prevent recounting of terms as it could be expensive, e.g. when bulk importing products.ย #29281 |
woocommerce_ajax_order_items_removed | Action that fires after order items are removed.ย #29241 |
Database Changes
This release does not introduce any database changes.
Template changes
This release does not introduce any changes to templates.
Reposted from WooCommerce