WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#21647 closed enhancement (fixed)

Twenty Ten: Allow page ancestors to have a visual "on" state.

Reported by: mfields Owned by: lancewillett
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch commit
Focuses: Cc:

Description

When wp_nav_menu() falls back to wp_page_menu() the nav menu shows an "on" state if you are viewing a top-level page. However, if you are on a sub-page, it doesn’t seem to show an "on" state for the parent.

Attachments (1)

21647.diff (716 bytes) - added by mfields 6 years ago.
Allow the output of wp_page_menu() to behave like wp_nav_menu() when visitor is viewing a sub-page.

Download all attachments as: .zip

Change History (4)

@mfields
6 years ago

Allow the output of wp_page_menu() to behave like wp_nav_menu() when visitor is viewing a sub-page.

#1 @SergeyBiryukov
6 years ago

  • Keywords commit added

#2 @SergeyBiryukov
6 years ago

  • Milestone changed from Awaiting Review to 3.5

#3 @lancewillett
6 years ago

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

In [22194]:

Twenty Ten: allow page ancestors to have a visual "on" state, props mfields. Fixes #21647.

Note: See TracTickets for help on using tickets.