Changeset 12601
- Timestamp:
- 03/28/2020 09:21:00 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-functions.php
r12590 r12601 2758 2758 } 2759 2759 2760 // No need to continue if the group doesn't have the type. 2761 $existing_types = bp_groups_get_group_type( $group_id, false ); 2762 if ( ! in_array( $group_type, $existing_types, true ) ) { 2763 return false; 2764 } 2765 2760 2766 $deleted = bp_remove_object_terms( $group_id, $group_type, 'bp_group_type' ); 2761 2767
Note: See TracChangeset
for help on using the changeset viewer.