Make WordPress Core

Changeset 60982


Ignore:
Timestamp:
10/20/2025 08:43:32 AM (6 months ago)
Author:
Bernhard Reiter
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-bindings.php

    r60809 r60982  
    141141function 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
Note: See TracChangeset for help on using the changeset viewer.