[wp-trac] [WordPress Trac] #13409: wp_nav_menu current-menu-item incorrect
WordPress Trac
wp-trac at lists.automattic.com
Sun May 16 22:16:52 UTC 2010
#13409: wp_nav_menu current-menu-item incorrect
--------------------------+-------------------------------------------------
Reporter: jolley_small | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Menus | Version: 3.0
Severity: normal | Keywords: has-patch needs-testing
--------------------------+-------------------------------------------------
Comment(by nacin):
We could probably just do `( $item->type == 'post_type' &&
$wp_query->is_singular ) || $item->type == 'taxonomy' && !
$wp_query->is_singular )`. Haven't looked at the code yet but if we need
to use $wp_query then that'd be easiest and should be good.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13409#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list