From 2f0d5cddfe5468a28d802b2cd362be5a39e06b52 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Tue, 28 Mar 2023 17:25:26 -0400 Subject: [PATCH] Navigation: Remove current-item exception for download page This was meant to prevent the current menu item styles from applying to the download button, but the CSS already handles that. Instead, this exception was just preventing the style on the menu item itself. Fix #358 --- mu-plugins/blocks/global-header-footer/blocks.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mu-plugins/blocks/global-header-footer/blocks.php b/mu-plugins/blocks/global-header-footer/blocks.php index fb85d0d5e..603f204a3 100644 --- a/mu-plugins/blocks/global-header-footer/blocks.php +++ b/mu-plugins/blocks/global-header-footer/blocks.php @@ -945,11 +945,6 @@ function is_wporg_network() { function set_current_item_class( $menu_items ) { $current_url = get_menu_url_for_current_page( $menu_items ); - // The download menu item is a button, we don't highlight it - if ( get_download_url() === $current_url ) { - return $menu_items; - } - foreach ( $menu_items as & $item ) { $sub = false; if ( ! empty( $item['submenu'] ) ) {