Skip to content

Commit cbd32e0

Browse files
committed
Block Bindings: Add support for Navigation Link and Submenu's url attr
1 parent c6a9f26 commit cbd32e0

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)