Skip to content

Commit 98ff53e

Browse files
committed
[#150] Don't add unnecessary attribute
1 parent 462bf22 commit 98ff53e

File tree

1 file changed

+1
-1
lines changed
  • wp-content/plugins/acf-blocks-toolkit/includes

1 file changed

+1
-1
lines changed

wp-content/plugins/acf-blocks-toolkit/includes/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function block_attrs( array $block, string $custom_class = '', array $attrs = []
4040
$block_styles = ! is_admin() ? get_core_styles( $block ) : '';
4141
if ( ! empty( $attrs['style'] ) ) {
4242
$attrs['style'] .= $block_styles;
43-
} else {
43+
} elseif ( $block_styles ) {
4444
$attrs['style'] = $block_styles;
4545
}
4646

0 commit comments

Comments
 (0)