diff --git a/packages/block-library/src/navigation/index.php b/packages/block-library/src/navigation/index.php index 61a6997ccd6c5..15e4482f7b3eb 100644 --- a/packages/block-library/src/navigation/index.php +++ b/packages/block-library/src/navigation/index.php @@ -472,7 +472,7 @@ function render_block_core_navigation( $attributes, $content, $block ) { $layout_class .= ' no-wrap'; } - $block_gap = isset( $attributes['style']['spacing']['blockgap'] ) ? 'style="gap: ' . $attributes['style']['spacing']['blockgap'] . 'px"' : ''; + $block_gap = isset( $attributes['style']['spacing']['blockGap'] ) ? 'style="gap: ' . $attributes['style']['spacing']['blockGap'] . '"' : ''; $colors = block_core_navigation_build_css_colors( $attributes ); $font_sizes = block_core_navigation_build_css_font_sizes( $attributes ); @@ -489,7 +489,7 @@ function render_block_core_navigation( $attributes, $content, $block ) { foreach ( $inner_blocks as $inner_block ) { if ( ( 'core/navigation-link' === $inner_block->name || 'core/home-link' === $inner_block->name || 'core/site-title' === $inner_block->name || 'core/site-logo' === $inner_block->name || 'core/navigation-submenu' === $inner_block->name ) && ! $is_list_open ) { $is_list_open = true; - $inner_blocks_html .= '