We’re excited to announce that WooCommerce 5.0 is now released! This is the second minor release of 2021 and has
- 255 commits from 30 contributors in WooCommerce core.
- 163 commits from 26 contributors in the WooCommerce admin 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.0?
Previous to this release, we’ve partially followed the Semantic Versioning (Semver) schema. Going forward we’ve decided to follow the WordPress versioning schema. This means that although we’re releasing version 5.0 (which usually means a backwards compatible breaking release under Semver), we will maintain backwards compatibility.
See more details in Developer Advisory: Changes to WooCommerce Versioning Scheme.
WooCommerce Admin 1.9.0
This release updates the WooCommerce admin package to 1.9.0 from 1.8.3. Mostly bugfixes and improvements are included in this update, including:
- Help tooltip will now appear when a task has not been completed the second time to give additional help for the merchant. (#5826)
- Home screen task extensibility. Allows 3pd to add their own tasks. (#5794).
- Added “unread” indicator to inbox messages. This helps to quickly see which inbox messages have not been read. (#6047)
Notable fixes and improvements
- Product Review Count: Previously in 4.9, we fixed the product review count from this PR #28624. This worked for all new comments being created however it did not correctly fix the issue that already happened. So we’ve put in a migration script which will fix the review count when new reviews are added. #28814
- Deprecate legacy reports: Since WooCommerce 4.0, it has added a new and improved WooCommerce Analytics. We’re encouraging users to start using the new WooCommerce Analytics and thus we have soft deprecated the legacy reports with a notice in the legacy reports section. #28799
- CSS Variables: We’ve added WooCommerce prefixed CSS variables to the stylesheet. This provides easier extendibility when developers need to utilize the same WooCommerce default styling without needing to recreate the CSS. #28709
- Restoring products, orders and coupons: Previously after trashing orders, products or coupons — when restoring, it puts these items into “draft” status. Now it will restore to the same status as what it was before to prevent issue. #28690
- Changing product type with attached files: Previously when an order is placed with a product that had downloadable files and when you change the product type to say a variable product, the permission for the downloadable files would be lost and access would be denied. This has been fixed so that it now recognizes the change of product type and when you go to use the same downloadable file, it would recognize it and recreate the permissions for the same customer. #28521
You can find the complete changelog for this release in the changelog.txt file.
While there are no schema changes to the database tables, we want to highlight that there will be a script that runs in the database that fixes any potential issues with the product review counts. #28814. This in turn will bump the database version to 5.0.0.
This release does not introduce any changes to template files.
Filters and actions
We have added one new action in this release.
|woocommerce_activated_plugin||Action to signal that packages such as WC Admin has been activated. #28698|
We have added two new filters in this release.
|woocommerce_delete_variations_on_product_type_change||Filter to prevent|
variations from being deleted while switching from a variable product type to a variable product type. #27137
|woocommerce_new_order_email_allows_resend||Filter to allow resending of the new order email to the admin. #28858|
Reposted from WooCommerce.com