Changeset 13326
- Timestamp:
- 09/19/2022 11:05:29 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-template.php
r13308 r13326 1569 1569 } 1570 1570 1571 if ( 'created_group' === $activity_type || 'joined_group' === $activity_type) {1571 if ( bp_is_active( 'groups' ) && ( 'created_group' === $activity_type || 'joined_group' === $activity_type ) ) { 1572 1572 $group = bp_get_group( $activity->item_id ); 1573 1573 $current_group = groups_get_current_group(); 1574 1574 1575 1575 // Do not use generated-content activities when displaying a group activity stream. 1576 if ( (int) $group->id === (int) $current_group->id ) {1576 if ( isset( $current_group->id ) && (int) $group->id === (int) $current_group->id ) { 1577 1577 return false; 1578 1578 }
Note: See TracChangeset
for help on using the changeset viewer.