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.
Built from https://develop.svn.wordpress.org/trunk@57576


git-svn-id: http://core.svn.wordpress.org/trunk@57077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
youknowriad 2024-02-09 15:10:13 +00:00
parent 66badc5b0d
commit 21e68fe56e
2 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ class WP_Block {
'core/paragraph' => array( 'content' ), 'core/paragraph' => array( 'content' ),
'core/heading' => array( 'content' ), 'core/heading' => array( 'content' ),
'core/image' => array( 'url', 'title', 'alt' ), '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 // If the block doesn't have the bindings property, isn't one of the allowed

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.5-alpha-57575'; $wp_version = '6.5-alpha-57576';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.