Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/13/2012 05:46:52 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Clean up $bp->current_component, $bp->current_action, and $bp->current_item usage. Fixes #3738.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-template.php

    r5729 r5758  
    706706
    707707        // If the current component matches the nav item id, then add a highlight CSS class.
    708         if ( !bp_is_directory() && $bp->active_components[$bp->current_component] == $nav_item['css_id'] ) {
     708        if ( !bp_is_directory() && $bp->active_components[bp_current_component()] == $nav_item['css_id'] ) {
    709709            $selected = ' class="current selected"';
    710710        }
     
    751751
    752752        $selected = '';
    753         if ( $bp->current_component == $user_nav_item['slug'] ) {
     753        if ( bp_is_current_component( $user_nav_item['slug'] ) ) {
    754754            $selected = ' class="current selected"';
    755755        }
Note: See TracChangeset for help on using the changeset viewer.