Changeset 13107
- Timestamp:
- 09/11/2021 07:56:26 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-functions.php
r13104 r13107 106 106 * @global BP_Groups_Template $groups_template Groups template object. 107 107 * 108 * @param false|int|string| BP_Groups_Group $group (Optional) The Group ID, the Group Slug or the Group object.109 * Default: false.108 * @param false|int|string|object|BP_Groups_Group $group (Optional) The Group ID, the Group Slug or the Group object. 109 * Default: false. 110 110 * @return BP_Groups_Group|bool The Group object if found, false otherwise. 111 111 */ … … 115 115 $group_obj = false; 116 116 117 if ( $group instanceof BP_Groups_Group ) {117 if ( $group instanceof BP_Groups_Group || ( is_object( $group ) && ! empty( $group->id ) ) ) { 118 118 $group_obj = $group; 119 119
Note: See TracChangeset
for help on using the changeset viewer.