From 0fc32626ba84ec6e25eda6fe87661d3c3f95eb74 Mon Sep 17 00:00:00 2001 From: Michal Czaplinski Date: Wed, 24 Jan 2024 16:16:32 +0000 Subject: [PATCH] Add 'linkTarget' property to core/button block in $allowed_blocks --- lib/compat/wordpress-6.5/blocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/wordpress-6.5/blocks.php b/lib/compat/wordpress-6.5/blocks.php index 352cc8819ce8cd..dccaeba5cc3352 100644 --- a/lib/compat/wordpress-6.5/blocks.php +++ b/lib/compat/wordpress-6.5/blocks.php @@ -63,7 +63,7 @@ function gutenberg_process_block_bindings( $block_content, $block, $block_instan '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' ), ); // If the block doesn't have the bindings property or isn't one of the allowed block types, return.