From fc129dd892b2968528e3388ffec3227b4c367a41 Mon Sep 17 00:00:00 2001 From: Ricardo Artemio Morales Date: Mon, 28 Oct 2024 02:07:37 -0400 Subject: [PATCH] Fix typo --- lib/compat/wordpress-6.6/blocks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compat/wordpress-6.6/blocks.php b/lib/compat/wordpress-6.6/blocks.php index f6a8e7f781a36..d72b06c89906a 100644 --- a/lib/compat/wordpress-6.6/blocks.php +++ b/lib/compat/wordpress-6.6/blocks.php @@ -31,7 +31,7 @@ function gutenberg_replace_pattern_override_default_binding( $parsed_block ) { // Build an binding array of all supported attributes. // Note that this also omits the `__default` attribute from the // resulting array. - if ( ! isset( $supported_block_attributes[ $parsed_block['blockName'] ] ) ) { + if ( ! isset( $supported_block_attrs[ $parsed_block['blockName'] ] ) ) { // get block type $block_registry = WP_Block_Type_Registry::get_instance(); $block_type = $block_registry->get_registered( $parsed_block['blockName'] ); @@ -46,7 +46,7 @@ function gutenberg_replace_pattern_override_default_binding( $parsed_block ) { } } } else { - foreach ( $supported_block_attributes[ $parsed_block['blockName'] ] as $attribute_name ) { + foreach ( $supported_block_attrs[ $parsed_block['blockName'] ] as $attribute_name ) { // Retain any non-pattern override bindings that might be present. $updated_bindings[ $attribute_name ] = isset( $bindings[ $attribute_name ] ) ? $bindings[ $attribute_name ]