Skip to:
Content

BuddyPress.org

Changeset 3239


Ignore:
Timestamp:
09/07/2010 09:58:03 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2622 (trunk) props gzeidan (see r2698)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-templatetags.php

    r3232 r3239  
    436436    foreach( (array) $bp->bp_nav as $nav_item ) {
    437437        /* If the current component matches the nav item id, then add a highlight CSS class. */
    438         if ( $bp->active_components[$bp->current_component] == $nav_item['css_id'] ) {
     438        if ( !bp_is_directory() && $bp->active_components[$bp->current_component] == $nav_item['css_id'] )
    439439            $selected = ' class="current selected"';
    440         } else {
     440        else
    441441            $selected = '';
    442         }
    443442
    444443        /* If we are viewing another person (current_userid does not equal loggedin_user->id)
Note: See TracChangeset for help on using the changeset viewer.