From cbd32e0503550e72e8bc4e48fb4fda33a0796d07 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Fri, 17 Oct 2025 11:04:29 +0200 Subject: [PATCH] Block Bindings: Add support for Navigation Link and Submenu's url attr --- src/wp-includes/block-bindings.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/block-bindings.php b/src/wp-includes/block-bindings.php index 23337398c2cbd..268bb6afa66bb 100644 --- a/src/wp-includes/block-bindings.php +++ b/src/wp-includes/block-bindings.php @@ -140,11 +140,13 @@ function get_block_bindings_source( string $source_name ) { */ function get_block_bindings_supported_attributes( $block_type ) { $block_bindings_supported_attributes = array( - 'core/paragraph' => array( 'content' ), - 'core/heading' => array( 'content' ), - 'core/image' => array( 'id', 'url', 'title', 'alt', 'caption' ), - 'core/button' => array( 'url', 'text', 'linkTarget', 'rel' ), - 'core/post-date' => array( 'datetime' ), + 'core/paragraph' => array( 'content' ), + 'core/heading' => array( 'content' ), + 'core/image' => array( 'id', 'url', 'title', 'alt', 'caption' ), + 'core/button' => array( 'url', 'text', 'linkTarget', 'rel' ), + 'core/post-date' => array( 'datetime' ), + 'core/navigation-link' => array( 'url' ), + 'core/navigation-submenu' => array( 'url' ), ); $supported_block_attributes =