Changeset 11100 for trunk/src/bp-groups/classes/class-bp-groups-group.php
- Timestamp:
- 09/14/2016 01:34:44 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-group.php
r11095 r11100 882 882 * @type array|string $parent_id Optional. Array or comma-separated list of group IDs. Results 883 883 * will be limited to children of the specified groups. Default: null. 884 * @type bool $populate_extras Whether to fetch additional information885 * (such as member count) about groups. Default: true.886 884 * @type array|string $exclude Optional. Array or comma-separated list of group IDs. 887 885 * Results will exclude the listed groups. Default: false. … … 936 934 'include' => false, 937 935 'parent_id' => null, 938 'populate_extras' => true,939 936 'update_meta_cache' => true, 940 937 'update_admin_cache' => false, … … 1149 1146 foreach ( (array) $paged_groups as $group ) { 1150 1147 $group_ids[] = $group->id; 1151 }1152 1153 // Populate some extra information instead of querying each time in the loop.1154 if ( !empty( $r['populate_extras'] ) ) {1155 $paged_groups = BP_Groups_Group::get_group_extras( $paged_groups, $group_ids, $r['type'] );1156 1148 } 1157 1149
Note: See TracChangeset
for help on using the changeset viewer.