Skip to content

Commit

Permalink
Navigation: Remove current-item exception for download page
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ryelle committed Mar 28, 2023
1 parent dfa73c2 commit 2f0d5cd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mu-plugins/blocks/global-header-footer/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ) ) {
Expand Down

0 comments on commit 2f0d5cd

Please sign in to comment.