Skip to content

Commit

Permalink
Add 'linkTarget' property to core/button block in $allowed_blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
michalczaplinski committed Jan 24, 2024
1 parent 4205960 commit 0fc3262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.5/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0fc3262

Please sign in to comment.