Make WordPress Core

Opened 2 years ago

Last modified 11 months ago

#20325 new defect (bug)

Menu item parent classes for page_for_posts (home.php) not properly set on single.php

Reported by: ptietz Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Menus Keywords: needs-patch
Focuses: Cc:


If one has set page_for_posts (Settings => Read), on single.php wp_nav_menu() will set current_page_parent for the accordant menu item, but it will not set any parent or ancestor classes for its parent menu items as expected. [tested with 3.3.1]

Change History (2)

comment:1 ptietz2 years ago

  • Cc ptietz@… added

comment:2 drumba11 months ago

Same time the home menu entry gets the current-menu-item class.

Note: See TracTickets for help on using tickets.