Make WordPress Core

Changeset 57576

Timestamp:
02/09/2024 03:08:35 PM (5 months ago)
Author:
youknowriad
Message:

Editor: Expand Block Bindings for button block.

Add block bindings support for the linkTarget and rel button block attributes.
This allows using custom fiends or pattern overrides for these attributes.

Props glendaviesnz.
Fixes #60481.

File:
1 edited

Legend:

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

    r57575 r57576  
    242242            'core/heading'   => array( 'content' ),
    243243            'core/image'     => array( 'url', 'title', 'alt' ),
    244             'core/button'    => array( 'url', 'text' ),
     244            'core/button'    => array( 'url', 'text' ),
    245245        );
    246246
Note: See TracChangeset for help on using the changeset viewer.