#17076 closed defect (bug) (invalid)
Nav menus produce duplicate classes on li elements for Page parents/ancestors
Reported by: | andymacb | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | trivial | Version: | 3.1 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
Using a fresh WP3.1.1, 2010 theme, Theme Unit Test data, adding a navigation menu with Parent Page, Child Page 1 & Child Page 2 arranged as a parent menu item with 2 children.
The <li> for the parent menu item gets classes: menu-item menu-item-type-post_type menu-item-object-page current-page-ancestor current-menu-ancestor current-menu-parent current-page-parent current_page_parent current_page_ancestor menu-item-689
current_page_parent & current_page_ancestor are included twice.
AFAIK this doesn't upset any current browser, so I've tagged this trivial.
Change History (3)
Note: See
TracTickets for help on using
tickets.
There aren't any duplicates in that list.
It does have
current-page-ancestor
as well ascurrent_page_ancestor
, andcurrent-page-parent
as well ascurrent_page_ancestor
(note underscore vs hyphens), but these are not duplicates. The underscored classes are there for backward compatibility with previous versions of wordpress.