This release updates the WooCommerce Blocks package to version 4.7.2, which fixes an issue that appears when trying to use theย Elementorย plugin in PHP 8 (aย Fatal error: Uncaught TypeError: array_diff()
ย is thrown; in PHP 7 this appears as just a warning). This error is caused byย a changeย introduced in Blocks 4.7.0 which assumes that theย $wp_scripts
ย global is never going to change, but in fact Elementor replaces it.
Additionally, some changes that were meant to be included in WooCommerce 5.3.0 had accidentally been included in 5.2.0; these are excluded from the 5.2.1 release.
Changelog
This release contains these changes:
- Update WooCommerce Blocks version to 4.7.2.ย #29660
- Remove some changes that were intended to be included in WooCommerce 5.3.0 (none of these had been included in the changelog for 5.2.0).
Thanks to everyone for reporting this issue promptly and helping out with the fix release.
You canย download the latest release of WooCommerce hereย or visit Dashboard โ Updates to update the plugin from your WordPress admin screen.
Reposted from WooCommerce