[wp-trac] [WordPress Trac] #17076: Nav menus produce duplicate classes on li elements for Page parents/ancestors

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 7 09:46:53 UTC 2011


#17076: Nav menus produce duplicate classes on li elements for Page
parents/ancestors
--------------------------+-----------------------------
 Reporter:  andymacb      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.1
 Severity:  trivial       |   Keywords:
--------------------------+-----------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17076>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list