[wp-trac] [WordPress Trac] #12812: New Nav Menu needs to have ancestor class
WordPress Trac
wp-trac at lists.automattic.com
Tue May 25 08:06:10 UTC 2010
#12812: New Nav Menu needs to have ancestor class
-------------------------+--------------------------------------------------
Reporter: joostdevalk | Owner: filosofo
Type: enhancement | Status: new
Priority: normal | Milestone: 3.0
Component: Menus | Version: 3.0
Severity: blocker | Keywords: has-patch
-------------------------+--------------------------------------------------
Changes (by filosofo):
* keywords: needs-patch => has-patch
* version: => 3.0
Comment:
`nav-menu-parent-classes.12812.diff` sets the `classes` property of menu
item objects, so that each menu item indicates via class name when a menu
item is the parent of the currently-queried thing: it indicates both when
it's the parent of that thing's corresponding menu item and when it
corresponds to the real parent of the thing.
* `current-menu-item`: A class value of the menu item when it corresponds
to the currently-requested page.
* `current-menu-parent`: A class value of the menu item when it is the
parent of the currently-requested page.
* `current-[category, page, post, etc.]-parent`: A class value of the
menu item when the object to which it corresponds is the parent of the
currently-requested object.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12812#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list