Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiomorales committed Oct 28, 2024
1 parent 3d7c879 commit fc129dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compat/wordpress-6.6/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] );
Expand All @@ -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 ]
Expand Down

0 comments on commit fc129dd

Please sign in to comment.