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
address feedback
  • Loading branch information
ntsekouras committed Aug 19, 2022
commit 1c464dbd2d4e0491711067c0b541e5b04ad76f18
14 changes: 9 additions & 5 deletions packages/block-library/src/post-featured-image/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,15 @@ function get_block_core_post_featured_image_border_attributes( $attributes ) {
);
}

$border_attributes = gutenberg_style_engine_get_styles( array( 'border' => $border_styles ) );
return array(
'class' => array_key_exists( 'classnames', $border_attributes ) ? $border_attributes['classnames'] : '',
'style' => array_key_exists( 'css', $border_attributes ) ? $border_attributes['css'] : '',
);
$styles = gutenberg_style_engine_get_styles( array( 'border' => $border_styles ) );
$attributes = array();
if ( ! empty( $styles['classnames'] ) ) {
$attributes['class'] = $styles['classnames'];
}
if ( ! empty( $styles['css'] ) ) {
$attributes['style'] = $styles['css'];
}
return $attributes;
}

/**
Expand Down