Skip to:
Content

BuddyPress.org

Changeset 3845


Ignore:
Timestamp:
01/22/2011 04:37:13 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Use _is_ api functions in bp-groups-actions.php

File:
1 edited

Legend:

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

    r3818 r3845  
    1414
    1515    // If we're not at domain.org/groups/create/ then return false
    16     if ( !bp_is_current_component( $bp->groups->slug ) || 'create' != $bp->current_action )
     16    if ( !bp_is_current_component( 'groups' ) || !bp_is_current_action( 'create' ) )
    1717        return false;
    1818
     
    187187    global $bp;
    188188
    189     if ( !$bp->is_single_item || !bp_is_current_component( $bp->groups->slug ) || $bp->current_action != 'join' )
     189    if ( !bp_is_single_item() || !bp_is_current_component( 'groups' ) || !bp_is_current_action( 'join' ) )
    190190        return false;
    191191
     
    222222    global $bp;
    223223
    224     if ( !$bp->is_single_item || !bp_is_current_component( $bp->groups->slug ) || $bp->current_action != 'leave-group' )
     224    if ( !bp_is_single_item() || !bp_is_current_component( 'groups' ) || !bp_is_current_action( 'leave-group' ) )
    225225        return false;
    226226
     
    247247    global $bp;
    248248
    249     if ( !bp_is_current_component( BP_GROUPS_SLUG ) && $bp->current_action != 'create' )
     249    if ( !bp_is_current_component( 'groups' ) || !bp_is_current_action( 'create' ) )
    250250        return false;
    251251
     
    282282    global $bp, $wp_query;
    283283
    284     if ( !bp_is_active( 'activity' ) || !bp_is_current_component( $bp->groups->slug ) || !isset( $bp->groups->current_group ) || $bp->current_action != 'feed' )
     284    if ( !bp_is_active( 'activity' ) || !bp_is_current_component( 'groups' ) || !isset( $bp->groups->current_group ) || !bp_is_current_action( 'feed' ) )
    285285        return false;
    286286
Note: See TracChangeset for help on using the changeset viewer.