[wp-trac] [WordPress Trac] #23908: wp_nav_menu generates wrong classes for li elements
WordPress Trac
noreply at wordpress.org
Sat Mar 30 13:42:47 UTC 2013
#23908: wp_nav_menu generates wrong classes for li elements
--------------------------------------+--------------------------
Reporter: anyname2 | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Menus
Version: 3.5.1 | Severity: normal
Keywords: needs-patch dev-feedback |
--------------------------------------+--------------------------
Function '''wp_nav_menu''' generates 2 different classes for '''<li>'''
with exactly the same meaning: e.g. '''current-page-parent''' and
'''current_page_parent'''. It sometimes generates one of them, but
sometimes both.
Also this coresponds to '''current-page-ancestor''' and
'''current_page_ancestor''' classes.
I think there should be one of them, but to preserve compatibility with
older websites, it is better to leave both but generate both at the same
time, so that user could use either "'''-'''" or "'''_'''" as separators.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23908>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list