Changeset 3178 for branches/1.2/bp-groups.php
- Timestamp:
- 08/11/2010 11:25:11 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-groups.php
r3175 r3178 97 97 $bp->groups->valid_status = apply_filters( 'groups_valid_status', array( 'public', 'private', 'hidden' ) ); 98 98 99 // Auto join group when non group member performs group activity 100 $bp->groups->auto_join = defined( 'BP_DISABLE_AUTO_GROUP_JOIN' ) ? false : true; 101 99 102 do_action( 'groups_setup_globals' ); 100 103 } … … 365 368 366 369 /* Auto join this user if they are not yet a member of this group */ 367 if ( !is_site_admin() && 'public' == $bp->groups->current_group->status && !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) )370 if ( $bp->groups->auto_join && !is_site_admin() && 'public' == $bp->groups->current_group->status && !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) 368 371 groups_join_group( $bp->groups->current_group->id, $bp->loggedin_user->id ); 369 372 … … 543 546 544 547 /* Auto join this user if they are not yet a member of this group */ 545 if ( !is_site_admin() && 'public' == $bp->groups->current_group->status && !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) )548 if ( $bp->groups->auto_join && !is_site_admin() && 'public' == $bp->groups->current_group->status && !groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) 546 549 groups_join_group( $bp->groups->current_group->id, $bp->loggedin_user->id ); 547 550
Note: See TracChangeset
for help on using the changeset viewer.