[buddypress-trac] [BuddyPress] #5198: WP menu current-menu-item class and BP components

buddypress-trac noreply at wordpress.org
Thu Oct 10 19:21:56 UTC 2013

#5198: WP menu current-menu-item class and BP components
 Reporter:  henrywright   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.8.1
 Severity:  normal        |   Keywords:
 I recently noticed something strange with reference WP menus and
 BuddyPress components.

 I use a WP menu in my site footer to output an unordered list of links
 (e.g. Members, Help, Privacy, Sitemap and so on).

 A {{{ current-menu-item }}} class is automatically added to a {{{ <li> }}}
 element when appropriate - this is default WP menu behaviour.

 The problem is, a {{{ current-menu-item }}} class gets added to my
 'Members' list item when I am viewing any page which is part of a BP
 component e.g when I visit


 all result in the 'Members' list item looking like this

 <li class="current-menu-item"><a href="/members/">Members</a></li>

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5198>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list