Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/11/2011 09:38:00 PM (13 years ago)
Author:
boonebgorges
Message:

Don't check against values in bp->active_components array (which are always the integer 1) in bp_is_current_component(). This change is a response to modifications to the way that bp->active_components and bp->loaded_components interact.

File:
1 edited

Legend:

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

    r4962 r4968  
    680680        // created by $bp->pages, as well as the regular slugs
    681681        } else {
    682             foreach ( $bp->active_components as $key => $id ) {
     682            foreach ( $bp->active_components as $id ) {
    683683                // If the $component parameter does not match the current_component,
    684684                // then move along, these are not the droids you are looking for
     
    686686                    continue;
    687687
    688                 if ( $key == $component ) {
     688                if ( $id == $component ) {
    689689                    $is_current_component = true;
    690690                    break;
Note: See TracChangeset for help on using the changeset viewer.