Skip to content

Commit

Permalink
[#150] Don't add unnecessary attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-viget committed Oct 17, 2024
1 parent 462bf22 commit 98ff53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-content/plugins/acf-blocks-toolkit/includes/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function block_attrs( array $block, string $custom_class = '', array $attrs = []
$block_styles = ! is_admin() ? get_core_styles( $block ) : '';
if ( ! empty( $attrs['style'] ) ) {
$attrs['style'] .= $block_styles;
} else {
} elseif ( $block_styles ) {
$attrs['style'] = $block_styles;
}

Expand Down

0 comments on commit 98ff53e

Please sign in to comment.