[wp-trac] [WordPress Trac] #20483: Do not output nav menu class attribute if no classes exist
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 18 19:06:24 UTC 2012
#20483: Do not output nav menu class attribute if no classes exist
--------------------------+---------------------
Reporter: niallkennedy | Owner: nacin
Type: enhancement | Status: closed
Priority: normal | Milestone: 3.4
Component: Menus | Version:
Severity: trivial | Resolution: fixed
Keywords: has-patch |
--------------------------+---------------------
Changes (by nacin):
* owner: => nacin
* status: new => closed
* resolution: => fixed
Comment:
In [20513]:
{{{
#!CommitTicketReference repository="" revision="20513"
Only output the class attribute in wp_nav_menu() if we have classes to
add. Don't waste time on an strlen() call. props niallkennedy, fixes
#20483.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20483#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list