Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/18/2011 04:17:47 PM (14 years ago)
Author:
boonebgorges
Message:

Check that components are active before checking to see whether we're looking at their activity feeds. Fixes #3069, props johnpbloch

File:
1 edited

Legend:

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

    r3985 r4055  
    248248    global $bp, $wp_query;
    249249
    250     if ( ( $bp->activity->slug != bp_current_component() ) || !bp_is_user() || !bp_is_current_action( $bp->friends->slug ) || !isset( $bp->action_variables[0] ) || $bp->action_variables[0] != 'feed' )
     250    if ( !bp_is_active( 'friends' ) || $bp->activity->slug != bp_current_component() || !bp_is_user() || !bp_is_current_action( $bp->friends->slug ) || !isset( $bp->action_variables[0] ) || $bp->action_variables[0] != 'feed' )
    251251        return false;
    252252
     
    262262    global $bp, $wp_query;
    263263
    264     if ( ( $bp->activity->slug != bp_current_component() ) || !bp_is_user() || !bp_is_current_action( $bp->groups->slug ) || !isset( $bp->action_variables[0] ) || $bp->action_variables[0] != 'feed' )
     264    if ( !bp_is_active( 'groups' ) || $bp->activity->slug != bp_current_component() || !bp_is_user() || !bp_is_current_action( $bp->groups->slug ) || !isset( $bp->action_variables[0] ) || $bp->action_variables[0] != 'feed' )
    265265        return false;
    266266
Note: See TracChangeset for help on using the changeset viewer.