From 54ff049dafe891f838d40a3f2ee0c6d19c9f23af Mon Sep 17 00:00:00 2001 From: Kai Hao Date: Tue, 20 Feb 2024 15:11:28 +0800 Subject: [PATCH] Fix missing source for binding attributes (#59194) Co-authored-by: kevin940726 Co-authored-by: talldan --- lib/compat/wordpress-6.5/blocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/wordpress-6.5/blocks.php b/lib/compat/wordpress-6.5/blocks.php index fa81025185b422..dbcdc433788ab1 100644 --- a/lib/compat/wordpress-6.5/blocks.php +++ b/lib/compat/wordpress-6.5/blocks.php @@ -57,7 +57,7 @@ function gutenberg_register_metadata_attribute( $args ) { */ function gutenberg_block_bindings_replace_html( $block_content, $block_name, string $attribute_name, $source_value ) { $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block_name ); - if ( ! isset( $block_type->attributes[ $attribute_name ] ) ) { + if ( ! isset( $block_type->attributes[ $attribute_name ]['source'] ) ) { return $block_content; }