diff --git a/packages/block-library/src/navigation/index.php b/packages/block-library/src/navigation/index.php index 361db142d75028..971a5f500e7741 100644 --- a/packages/block-library/src/navigation/index.php +++ b/packages/block-library/src/navigation/index.php @@ -775,16 +775,6 @@ function render_block_core_navigation( $attributes, $content, $block ) { $toggle_aria_label_open = $should_display_icon_label ? 'aria-label="' . __( 'Open menu' ) . '"' : ''; // Open button label. $toggle_aria_label_close = $should_display_icon_label ? 'aria-label="' . __( 'Close menu' ) . '"' : ''; // Close button label. - /** - * To do: - * The overlay always shows if $attributes['overlayMenu'] === 'mobile'. - * Some CSS is not loading, probably because do_blocks is used after wp_head? - */ - $overlay = isset( $attributes['overlayTemplatePart'] ) ? get_block_template( $attributes['overlayTemplatePart'] , 'wp_template_part' ) : ''; - if ( ! empty( $overlay ) ) { - $inner_blocks_html = do_blocks( $overlay->content ); - } - $responsive_container_markup = sprintf( '