Changeset 7442 for trunk/bp-groups/bp-groups-screens.php
- Timestamp:
- 10/17/2013 07:00:46 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-screens.php
r7440 r7442 479 479 if ( 'private' != $bp->groups->current_group->status ) 480 480 return false; 481 482 // If the user is already invited, accept invitation 483 if ( groups_check_user_has_invite( bp_loggedin_user_id(), $bp->groups->current_group->id ) ) { 484 if ( groups_accept_invite( bp_loggedin_user_id(), $bp->groups->current_group->id ) ) 485 bp_core_add_message( __( 'Group invite accepted', 'buddypress' ) ); 486 else 487 bp_core_add_message( __( 'There was an error accepting the group invitation, please try again.', 'buddypress' ), 'error' ); 488 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) ); 489 } 481 490 482 491 // If the user has submitted a request, send it.
Note: See TracChangeset
for help on using the changeset viewer.