Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/27/2011 06:51:43 PM (14 years ago)
Author:
boonebgorges
Message:

Change default scope on bp_has_activities() to account for changes in active_ vs loaded_components global structure. Fixes #2588 again

File:
1 edited

Legend:

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

    r4863 r4877  
    270270            $show_hidden = true;
    271271    }
    272 
     272   
    273273    // The default scope should recognize custom slugs
    274     if ( array_key_exists( $bp->current_action, (array)$bp->active_components ) )
    275         $scope = $bp->active_components[$bp->current_action];
     274    if ( array_key_exists( $bp->current_action, (array)$bp->loaded_components ) ) {
     275        $scope = $bp->loaded_components[$bp->current_action];
     276    }
    276277    else
    277278        $scope = bp_current_action();
Note: See TracChangeset for help on using the changeset viewer.