Make WordPress Core

Changeset 57576


Ignore:
Timestamp:
02/09/2024 03:08:35 PM (4 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', 'linkTarget', 'rel' ),
    245245        );
    246246
Note: See TracChangeset for help on using the changeset viewer.