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