[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
Fri Dec 30 17:24:57 UTC 2011
#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 | Keywords:
--------------------------+-----------------------------
If the current page is the home page, the _wp_menu_item_classes_by_context
function will incorrectly add the current-menu-item and current_page_item
classes to any custom menu items that do not have a value for URL. This
occurs because the custom menu item URL (after formatting) compares equal
to the home page URL.
Note - a custom menu item might not have a URL value if it is used as only
a parent container for another submenu.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19699>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list