Skip to content

Commit 199442b

Browse files
carolinancbravobernal
authored andcommitted
Remove duplicate font size class
1 parent d8fd70c commit 199442b

File tree

1 file changed

+1
-4
lines changed
  • packages/block-library/src/comment-author-name

1 file changed

+1
-4
lines changed

packages/block-library/src/comment-author-name/index.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ function render_block_core_comment_author_name( $attributes, $content, $block )
2525

2626
$classes = '';
2727
if ( isset( $attributes['textAlign'] ) ) {
28-
$classes .= 'has-text-align-' . esc_attr( $attributes['textAlign'] );
29-
}
30-
if ( isset( $attributes['fontSize'] ) ) {
31-
$classes .= 'has-' . esc_attr( $attributes['fontSize'] ) . '-font-size';
28+
$classes .= 'has-text-align-' . $attributes['textAlign'];
3229
}
3330

3431
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) );

0 commit comments

Comments
 (0)