| @@ -10,9 +10,9 @@ | ||
| 10 | 10 | * which will be applied to the home link markup in the front-end. |
| 11 | 11 | * |
| 12 | 12 | * @since 6.0.0 |
| 13 | 13 | * |
| 14 | - * @param array $context home link block context. | |
| 14 | + * @param array $context home link block context. | |
| 15 | 15 | * @return array Colors CSS classes and inline styles. |
| 16 | 16 | */ |
| 17 | 17 | function gutenberg_block_core_home_link_build_css_colors( $context ) { |
| 18 | 18 | $colors = array( |
| @@ -63,9 +63,9 @@ | ||
| 63 | 63 | * Builds an array with classes and style for the li wrapper |
| 64 | 64 | * |
| 65 | 65 | * @since 6.0.0 |
| 66 | 66 | * |
| 67 | - * @param array $context Home link block context. | |
| 67 | + * @param array $context Home link block context. | |
| 68 | 68 | * @return string The li wrapper attributes. |
| 69 | 69 | */ |
| 70 | 70 | function gutenberg_block_core_home_link_build_li_wrapper_attributes( $context ) { |
| 71 | 71 | $colors = gutenberg_block_core_home_link_build_css_colors( $context ); |
| @@ -72,9 +72,9 @@ | ||
| 72 | 72 | $classes = array_merge( |
| 73 | 73 | $colors['css_classes'] |
| 74 | 74 | ); |
| 75 | 75 | |
| 76 | - $style_attribute = ( $colors['inline_styles'] ); | |
| 76 | + $style_attribute = $colors['inline_styles']; | |
| 77 | 77 | $classes[] = 'wp-block-navigation-item'; |
| 78 | 78 | |
| 79 | 79 | if ( is_front_page() ) { |
| 80 | 80 | $classes[] = 'current-menu-item'; |