Skip to content

Commit 2c5d575

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@60982 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 96e39e2 commit 2c5d575

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/wp-includes/block-bindings.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,13 @@ function get_block_bindings_source( string $source_name ) {
140140
*/
141141
function get_block_bindings_supported_attributes( $block_type ) {
142142
$block_bindings_supported_attributes = array(
143-
'core/paragraph' => array( 'content' ),
144-
'core/heading' => array( 'content' ),
145-
'core/image' => array( 'id', 'url', 'title', 'alt', 'caption' ),
146-
'core/button' => array( 'url', 'text', 'linkTarget', 'rel' ),
147-
'core/post-date' => array( 'datetime' ),
143+
'core/paragraph' => array( 'content' ),
144+
'core/heading' => array( 'content' ),
145+
'core/image' => array( 'id', 'url', 'title', 'alt', 'caption' ),
146+
'core/button' => array( 'url', 'text', 'linkTarget', 'rel' ),
147+
'core/post-date' => array( 'datetime' ),
148+
'core/navigation-link' => array( 'url' ),
149+
'core/navigation-submenu' => array( 'url' ),
148150
);
149151

150152
$supported_block_attributes =

0 commit comments

Comments
 (0)