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:
@@ -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 =
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user