From 646a8366bddbb196bbf03ed7741682adc0d33a06 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Wed, 29 Mar 2023 19:40:20 +0900 Subject: [PATCH] Home Link Block: Remove leading spaces in class names (#49397) --- packages/block-library/src/home-link/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/home-link/index.php b/packages/block-library/src/home-link/index.php index 33f41057c936bb..459979b0d43893 100644 --- a/packages/block-library/src/home-link/index.php +++ b/packages/block-library/src/home-link/index.php @@ -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, ) );