Changeset 12125
- Timestamp:
- 05/25/2018 11:11:48 PM (7 years ago)
- Location:
- branches/3.0/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/src/bp-groups/actions/create.php
r11923 r12125 183 183 184 184 // Once we completed all steps, record the group creation in the activity stream. 185 groups_record_activity( array( 186 'type' => 'created_group', 187 'item_id' => $bp->groups->new_group_id 188 ) ); 185 if ( bp_is_active( 'activity' ) ) { 186 groups_record_activity( array( 187 'type' => 'created_group', 188 'item_id' => $bp->groups->new_group_id 189 ) ); 190 } 189 191 190 192 /** -
branches/3.0/src/bp-groups/bp-groups-functions.php
r12123 r12125 586 586 587 587 // Record this in activity streams. 588 groups_record_activity( array( 589 'type' => 'joined_group', 590 'item_id' => $group_id, 591 'user_id' => $user_id, 592 ) ); 588 if ( bp_is_active( 'activity' ) ) { 589 groups_record_activity( array( 590 'type' => 'joined_group', 591 'item_id' => $group_id, 592 'user_id' => $user_id, 593 ) ); 594 } 593 595 594 596 /** -
branches/3.0/src/bp-groups/screens/user/invites.php
r11923 r12125 29 29 bp_core_add_message( sprintf( __( 'Group invite accepted. Visit %s.', 'buddypress' ), bp_get_group_link( $group ) ) ); 30 30 31 groups_record_activity( array( 32 'type' => 'joined_group', 33 'item_id' => $group->id 34 ) ); 31 if ( bp_is_active( 'activity' ) ) { 32 groups_record_activity( array( 33 'type' => 'joined_group', 34 'item_id' => $group->id 35 ) ); 36 } 35 37 } 36 38 -
branches/3.0/src/bp-templates/bp-nouveau/includes/groups/ajax.php
r12105 r12125 108 108 109 109 } else { 110 groups_record_activity( 111 array( 112 'type' => 'joined_group', 113 'item_id' => $group->id, 114 ) 115 ); 110 if ( bp_is_active( 'activity' ) ) { 111 groups_record_activity( 112 array( 113 'type' => 'joined_group', 114 'item_id' => $group->id, 115 ) 116 ); 117 } 116 118 117 119 // User is now a member of the group
Note: See TracChangeset
for help on using the changeset viewer.