[wp-trac] [WordPress Trac] #12812: New Nav Menu needs to have ancestor class
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 2 12:39:55 UTC 2010
#12812: New Nav Menu needs to have ancestor class
-------------------------+--------------------------------------------------
Reporter: joostdevalk | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.0
Component: General | Version:
Severity: normal | Keywords: has-patch dev-feedback needs-testing
-------------------------+--------------------------------------------------
In the new menu functionality, the only thing that's missing from the
"old" wp_list_page method is the parent / ancestor class: I'd like to
highlight a menu item even if that menu item's page is only the ancestor
page of the current page, to highlight the current section.
To do this, we have to simply match the menu item against the current
post->ancestors array. Patch attached.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12812>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list