Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/27/2009 09:18:10 PM (17 years ago)
Author:
apeatling
Message:

Fixes #723

File:
1 edited

Legend:

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

    r1714 r1718  
    2222        foreach( (array) $bp->bp_nav as $nav_item ) {
    2323                /* If the current component matches the nav item id, then add a highlight CSS class. */
    24                 if ( $bp->current_component == $nav_item['css_id'] ) {
     24                if ( $bp->active_components[$bp->current_component] == $nav_item['css_id'] ) {
    2525                        $selected = ' class="current"';
    2626                } else {
     
    3535                       
    3636                        if ( function_exists('friends_install') ) {
    37                                 if ( $nav_item['css_id'] == $bp->friends->slug ) {
     37                                if ( $nav_item['css_id'] == $bp->friends->id ) {
    3838                                        if ( friends_check_friendship( $bp->loggedin_user->id, $bp->displayed_user->id ) )
    3939                                                $selected = ' class="current"';
Note: See TracChangeset for help on using the changeset viewer.