mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@57576 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
acad00ecab
commit
b194cd1d91
@ -241,7 +241,7 @@ class WP_Block {
|
||||
'core/paragraph' => array( 'content' ),
|
||||
'core/heading' => array( 'content' ),
|
||||
'core/image' => array( 'url', 'title', 'alt' ),
|
||||
'core/button' => array( 'url', 'text' ),
|
||||
'core/button' => array( 'url', 'text', 'linkTarget', 'rel' ),
|
||||
);
|
||||
|
||||
// If the block doesn't have the bindings property, isn't one of the allowed
|
||||
|
||||
Loading…
Reference in New Issue
Block a user