[wp-trac] [WordPress Trac] #33703: Menu Class: current_sub_item
WordPress Trac
noreply at wordpress.org
Fri Sep 4 08:26:50 UTC 2015
#33703: Menu Class: current_sub_item
-------------------------+------------------------------
Reporter: atomicjack | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: ui
-------------------------+------------------------------
Comment (by atomicjack):
Replying to [comment:3 swissspidy]:
> `current` is for sub items only. Elements with this class always have a
parent `menu-top`. Using CSS selectors you can basically address every
item in the admin menu, even separators.
>
> Feel free to prove me wrong here using a concrete example, perhaps with
a screenshot.
There's no menu-top on this:
Parent:
{{{
menu-item menu-item-type-post_type menu-item-object-page current-menu-
ancestor current-menu-parent current_page_parent current_page_ancestor
menu-item-has-children menu-item-42
}}}
Dropdown/Sub:
{{{
menu-item menu-item-type-post_type menu-item-object-page current-menu-item
page_item page-item-200 current_page_item menu-item-217
}}}
From that, I can't see anyway to select just current sub-items, rather
than any current item.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33703#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list