[buddypress-trac] [BuddyPress] #1244: ul#nav class="selected" and ul#bp-nav class="current" are mixing up

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Oct 19 01:50:03 UTC 2009


#1244: ul#nav class="selected" and ul#bp-nav class="current" are mixing up
-------------------+--------------------------------------------------------
Reporter:  21cdb   |       Owner:       
    Type:  defect  |      Status:  new  
Priority:  major   |   Milestone:  1.1.2
Keywords:          |  
-------------------+--------------------------------------------------------

Comment(by johnjamesjacoby):

 Can't duplicate this on testbp.org or my test installations. Best guess is
 this is an issue with your custom theme or potentially mish-mashed BP
 files from previous versions.

 Explaination...

 The main nav uses something like...

 {{{
 if ( bp_is_page( BP_GROUPS_SLUG ) )
 }}}

 Where as the bp_get_nav/bp_get_loggedin_user_nav uses...

 {{{
 if ( $bp->active_components[$bp->current_component] == $nav_item['css_id']
 ) {
 }}}

 They're comparing two different parts of the nav. At first I thought
 something like this could occur but since they test two different
 parameters I don't see how core functions would allow this to happen.

 Not saying it's impossible, but I can't make it broken to find a fix.

 Care to share your code here to verify?

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1244#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list