[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
Tue Jan 3 17:52:35 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: 3.3.1
Component: Menus | Version: 3.3
Severity: normal | Resolution:
Keywords: |
--------------------------+--------------------
Comment (by nacin):
Attached patch prevents an empty URL from triggering the current-menu-item
class.
It also allows a relative root URL ("/") to trigger the current-menu-item
class, as before.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19699#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list