From cbf5966030037eb7fb7744b5e639c7d5e850806e Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Mon, 15 Sep 2025 14:29:18 +0200 Subject: [PATCH 1/2] Block Bindings: Add block_bindings_supported_attributes filter --- lib/compat/wordpress-6.9/block-bindings.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/compat/wordpress-6.9/block-bindings.php b/lib/compat/wordpress-6.9/block-bindings.php index 9d9f2dff4cbda0..f0fdb51f70c043 100644 --- a/lib/compat/wordpress-6.9/block-bindings.php +++ b/lib/compat/wordpress-6.9/block-bindings.php @@ -112,6 +112,20 @@ function gutenberg_process_block_bindings( $instance ) { $block_bindings_supported_attributes_6_8[ $block_type ] ?? array(); + /** + * Filters the supported block attributes for block bindings. + * + * @since 6.9.0 + * + * @param string[] $supported_block_attributes The block's attributes that are supported by block bindings. + * @param string $block_type The block type whose attributes are being filtered. + */ + $supported_block_attributes = apply_filters( + 'block_bindings_supported_attributes', + $supported_block_attributes, + $block_type + ); + /** * Filters the supported block attributes for block bindings. * From a77bf2ea0b62e22df6641533deb92b1d29ca6d46 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Mon, 15 Sep 2025 14:33:21 +0200 Subject: [PATCH 2/2] Add backport changelog --- backport-changelog/6.9/9891.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 backport-changelog/6.9/9891.md diff --git a/backport-changelog/6.9/9891.md b/backport-changelog/6.9/9891.md new file mode 100644 index 00000000000000..1b6718a11babf4 --- /dev/null +++ b/backport-changelog/6.9/9891.md @@ -0,0 +1,3 @@ +https://github.com/WordPress/wordpress-develop/pull/9891 + +* https://github.com/WordPress/gutenberg/pull/71663 \ No newline at end of file