Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix border support check
  • Loading branch information
aaronrobertshaw committed Apr 16, 2021
commit c96ec94fbf653d546800b9bf6d8a69ed9b473214
6 changes: 1 addition & 5 deletions lib/block-supports/border.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@
*/
function gutenberg_register_border_support( $block_type ) {
// Determine if any border related features are supported.
$has_border_support = gutenberg_block_has_support( $block_type, array( '__experimentalBorder' ) );
$has_border_color_support = gutenberg_block_has_support( $block_type, array( '__experimentalBorder', 'color' ) );
$has_border_support =
gutenberg_block_has_support( $block_type, array( '__experimentalBorder', 'radius' ) ) ||
gutenberg_block_has_support( $block_type, array( '__experimentalBorder', 'style' ) ) ||
gutenberg_block_has_support( $block_type, array( '__experimentalBorder', 'width' ) ) ||
$has_border_color_support;

// Setup attributes and styles within that if needed.
if ( ! $block_type->attributes ) {
Expand Down