From 21e68fe56e7d15e00eaca934293cd47c616c7db1 Mon Sep 17 00:00:00 2001 From: youknowriad Date: Fri, 9 Feb 2024 15:10:13 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-block.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-block.php b/wp-includes/class-wp-block.php index 455ea2e138..0145ba4369 100644 --- a/wp-includes/class-wp-block.php +++ b/wp-includes/class-wp-block.php @@ -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 diff --git a/wp-includes/version.php b/wp-includes/version.php index 4b5e3d5cf1..6c67085712 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @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.