Commit b5f01f24950 for woocommerce

commit b5f01f24950dcd099db8028e952956bb76abcfa2
Author: Vladimir Reznichenko <kalessil@gmail.com>
Date:   Fri Nov 20 11:55:19 2026 +0100

    [Performance] Review lazy blocks registration backward compatibility layout (#71191)

diff --git a/plugins/woocommerce/changelog/performance-review-lazy-blocks-bc b/plugins/woocommerce/changelog/performance-review-lazy-blocks-bc
new file mode 100644
index 00000000000..4b5ec78a6d1
--- /dev/null
+++ b/plugins/woocommerce/changelog/performance-review-lazy-blocks-bc
@@ -0,0 +1,4 @@
+Significance: minor
+Type: performance
+
+Review lazy blocks registration backward compatibility layout.
diff --git a/plugins/woocommerce/src/Blocks/BlockTypesLazyController.php b/plugins/woocommerce/src/Blocks/BlockTypesLazyController.php
index d2ea21a2c9b..3b9f7ad5f5b 100644
--- a/plugins/woocommerce/src/Blocks/BlockTypesLazyController.php
+++ b/plugins/woocommerce/src/Blocks/BlockTypesLazyController.php
@@ -67,7 +67,7 @@ final class BlockTypesLazyController {

 		foreach ( $inner_block_groups as $blocks_group ) {
 			foreach ( $blocks_group as $block_name => $block_class ) {
-				if ( isset( $whitelisted[ $block_class ] ) && false === has_action( "woocommerce_blocks_{$block_name}_block_registration" ) ) {
+				if ( isset( $whitelisted[ $block_class ] ) ) {
 					$registered_block_type = register_block_type_from_metadata(
 						$this->asset_api->generate_block_metadata_path( $block_name, 'inner-blocks/' ),
 						array(
@@ -91,7 +91,7 @@ final class BlockTypesLazyController {
 		);
 		foreach ( $block_groups as $blocks_group ) {
 			foreach ( $blocks_group as $block_name => $block_class ) {
-				if ( isset( $whitelisted[ $block_class ] ) && false === has_action( "woocommerce_blocks_{$block_name}_block_registration" ) ) {
+				if ( isset( $whitelisted[ $block_class ] ) ) {
 					// Backward compatibility: use original handles for the editor scripts and blocks styles.
 					if ( ! $unified_editor_assets && $is_admin ) {
 						$this->asset_api->register_script( 'wc-' . $block_name . '-block', $this->asset_api->get_block_asset_build_path( $block_name ), array( 'wc-blocks' ) );