From 8c7211061d70323eda6b45c30447db260c322ba7 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Fri, 20 Jan 2023 08:16:11 +0100 Subject: [PATCH] Remove the check for the old block attribute --- packages/block-library/src/navigation/index.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/block-library/src/navigation/index.php b/packages/block-library/src/navigation/index.php index 361db142d7502..971a5f500e774 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( '