Skip to content

Commit

Permalink
Home Link Block: Remove leading spaces in class names (#49397)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Mar 29, 2023
1 parent 51d6144 commit 646a836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/home-link/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ function block_core_home_link_build_li_wrapper_attributes( $context ) {
$colors['css_classes'],
$font_sizes['css_classes']
);
$classes[] = 'wp-block-navigation-item';
$style_attribute = ( $colors['inline_styles'] . $font_sizes['inline_styles'] );
$css_classes = trim( implode( ' ', $classes ) ) . ' wp-block-navigation-item';

$wrapper_attributes = get_block_wrapper_attributes(
array(
'class' => $css_classes,
'class' => implode( ' ', $classes ),
'style' => $style_attribute,
)
);
Expand Down

0 comments on commit 646a836

Please sign in to comment.