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
This commit is contained in:
Bernhard Reiter
2025-10-20 08:52:24 +00:00
parent a81ae76e8d
commit 10c5e632b9
2 changed files with 8 additions and 6 deletions

View File

@@ -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 =

View File

@@ -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.