WooCommerce 5.2 Released

We’re excited to announce that WooCommerce 5.2 is now released! This is the third minor release of 2021 and has

  1. 456 commits from 27 contributors in WooCommerce core.
  2. 109 commits from 25 contributors in the WooCommerce Admin package.
  3. 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?

  1. 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.
  2. 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

  1. 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.
  2. 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
  3. 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
  4. 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
  5. 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
  6. Updated net sales link: The “net sales” link in the dashboard now points to the new analytics screen when WooCommerce Admin is enabled. #29149
  7. Improved handling of downloadable file paths: Strip /// sequences in downloadable file paths to prevent access to absolute paths. #28699
  8. 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
  9. 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
  10. 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.

FilterDescription
woocommerce_product_recount_termsFilter 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
5.2 new filter hooks

Database Changes

This release does not introduce any database changes.

Template changes

This release does not introduce any changes to templates.

Much 💜 to all the contributors

Finally a big thanks to everyone in the community who has contributed via issue reports, fixes, translation, testing, supporting other users, or simply spreading the word.

WooCommerce core

claudiosanches zhongruige roykho rrennick vedanshujain barryhughes
claudiosanches zhongruige roykho rrennick vedanshujain barryhughes
Konamiman tammullen louwie17 peterfabian artpi mikejolley
Konamiman tammullen louwie17 peterfabian artpi mikejolley
veljkho chickenn00dle moon0326 mattsherman ObliviousHarmony jonathansadowski
veljkho chickenn00dle moon0326 mattsherman ObliviousHarmony jonathansadowski
psealock Marcuzz octaedro nielslange
psealock Marcuzz octaedro nielslange

WooCommerce Admin

joshuatf samueljseay psealock hsingyuc louwie17 adrianduffell
joshuatf samueljseay psealock hsingyuc louwie17 adrianduffell
becdetat joelclimbsthings elizaan36 octaedro timmyc szepeviktor
becdetat joelclimbsthings elizaan36 octaedro timmyc szepeviktor
chickenn00dle ilyasfoo LevinMedia jorgeatorres tomalec ribaricplusplus
chickenn00dle ilyasfoo LevinMedia jorgeatorres tomalec ribaricplusplus
mattsherman nerrad moon0326
mattsherman nerrad moon0326

WooCommerce Blocks

opr mikejolley Aljullu nerrad senadir ralucaStan
opr mikejolley Aljullu nerrad senadir ralucaStan
budzanowski
budzanowski

Action Scheduler

barryhughes claudiosanches
barryhughes claudiosanches

Keep yourself in the loop!

Sign up for the WooCommerce developer newsletter:
This field is hidden when viewing the form
This field is hidden when viewing the form
This field is hidden when viewing the form


7 responses to “WooCommerce 5.2 Released”

  1. […] 13, 2021bywebsevendevWooCommerce 5.2 compatibility.Bundle One Click Demo Import plugin version 2.6 due to incompatibilities with 3.0 […]

  2. I have to report , nor mine installation luckily which is 5.1 , with a friend of mine ,that 5.2 with Elementor latest releases gives out a fatal error …i will wait until this has been fixed . Please check .

  3. Thanks for the fixes and improvements!

  4. […] högre uppdateringstakten för WooCommerce fortsätter att hålla i sig. Nu är WooCommerce 5.2 släppt, och du bör förstås uppdatera så snart som […]

  5. philipverheij Avatar
    philipverheij

    As mentioned in this post there are no template changes in this version. However the two files below are changed to 5.2.0
    /woocommerce/checkout/review-order.php
    /woocommerce/order/order-details-item.php

  6. […] WooCommerce 5.2 was released on April 13, 2021. It includes numerous fixes and enhancements, such as REST API fixes, a new dashboard widget to help merchants finish setting up their stores and an improvement that adds low stock thresholds for individual variations in variable products. This release also includes updated versions of WooCommerce Admin (2.1.5) and WooCommerce Blocks (4.7). […]

  7. edvinasgaubas Avatar
    edvinasgaubas

    Your 5.3.0 version is totaly broken… Don’t believe me?? Check https://themuse.lt/ basket, my account and checkout 😀 it doesnt work

Leave a Reply

Your email address will not be published. Required fields are marked *