[wp-trac] [WordPress Trac] #19699: current-menu-item and current_page_item classes incorrectly added to custom menu items with no URL value.

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 1 11:19:47 UTC 2012


#19699: current-menu-item and current_page_item classes incorrectly added to custom
menu items with no URL value.
--------------------------+------------------------------
 Reporter:  tschoonover   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by duck_):

 Caused by [18746] for #15954 because $_root_relative_current is an empty
 string for the home page. We could check if the URL is empty for custom
 menu items before adding classes.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19699#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list