Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#18643 closed defect (bug) (fixed)

Twenty Eleven incorrectly only uses .current_page_item for nav menu styling

Reported by: Viper007Bond Owned by: nacin
Milestone: 3.3 Priority: normal
Severity: normal Version: 3.3
Component: Bundled Theme Keywords: has-patch
Focuses: Cc:
PR Number:


Twenty Eleven only highlights pages in its nav menu due to using CSS classes targeted at wp_page_menu() output. It works with custom nav menus because that functionality outputs backwards compatibility classes.

It should also highlight .current-menu-item and .current-menu-ancestor.

To reproduce, add some categories to your nav menu and then click on one of them. They won't be bolded as they should be.

Attachments (1)

18643.patch (474 bytes) - added by Viper007Bond 8 years ago.

Download all attachments as: .zip

Change History (4)

8 years ago

#1 @SergeyBiryukov
8 years ago

  • Component changed from Themes to Bundled Theme
  • Milestone changed from Awaiting Review to 3.3

#2 @nacin
8 years ago

Running on WP.com, good enough for me.

#3 @nacin
8 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [19301]:

Highlight current-menu-item and current-menu-ancestor in Twenty Eleven. props Viper007Bond, fixes #18643.

Note: See TracTickets for help on using tickets.