From 10c5e632b99b1725bb2ef76e9479ae3c207e6255 Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Mon, 20 Oct 2025 08:52:24 +0000 Subject: [PATCH] Block Bindings: Add support for Nav Link and Submenu's `url` attr. Enable Block Bindings support for the Navigation Link and Navigation Submenu blocks' `url` attribute. Fixes #64116. Built from https://develop.svn.wordpress.org/trunk@60982 git-svn-id: http://core.svn.wordpress.org/trunk@60318 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-bindings.php | 12 +++++++----- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/wp-includes/block-bindings.php b/wp-includes/block-bindings.php index 23337398c2..268bb6afa6 100644 --- a/wp-includes/block-bindings.php +++ b/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 = diff --git a/wp-includes/version.php b/wp-includes/version.php index 06ef479e43..3d2a0790a7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-alpha-60981'; +$wp_version = '6.9-alpha-60982'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.