#17076 closed defect (bug) (invalid)
Nav menus produce duplicate classes on li elements for Page parents/ancestors
| Reported by: | andymacb | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 3.1 |
| Severity: | trivial | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
There aren't any duplicates in that list.
It does have
current-page-ancestoras well ascurrent_page_ancestor, andcurrent-page-parentas 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.