Changeset 11100
- Timestamp:
- 09/14/2016 01:34:44 AM (9 years ago)
- Location:
- trunk/src/bp-groups
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-functions.php
r11095 r11100 712 712 'per_page' => 20, // The number of results to return per page. 713 713 'page' => 1, // The page to return if limiting per page. 714 'populate_extras' => true, // Fetch meta such as is_banned and is_member.715 714 'update_meta_cache' => true, // Pre-fetch groupmeta for queried groups. 716 715 'update_admin_cache' => false, … … 733 732 'per_page' => $r['per_page'], 734 733 'page' => $r['page'], 735 'populate_extras' => $r['populate_extras'],736 734 'update_meta_cache' => $r['update_meta_cache'], 737 735 'update_admin_cache' => $r['update_admin_cache'], -
trunk/src/bp-groups/bp-groups-template.php
r11095 r11100 135 135 * @type array|string $include Array or comma-separated list of group IDs. Results will be limited 136 136 * to groups within the list. Default: false. 137 * @type bool $populate_extras Whether to fetch additional information (such as member count)138 * about groups. Default: true.139 137 * @type array|string $exclude Array or comma-separated list of group IDs. Results will exclude 140 138 * the listed groups. Default: false. … … 206 204 'exclude' => false, 207 205 'parent_id' => null, 208 'populate_extras' => true,209 206 'update_meta_cache' => true, 210 207 'update_admin_cache' => bp_is_groups_directory() || bp_is_user_groups(), … … 231 228 'exclude' => $r['exclude'], 232 229 'parent_id' => $r['parent_id'], 233 'populate_extras' => (bool) $r['populate_extras'],234 230 'update_meta_cache' => (bool) $r['update_meta_cache'], 235 231 'update_admin_cache' => (bool) $r['update_admin_cache'], -
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 -
trunk/src/bp-groups/classes/class-bp-groups-member-suggestions.php
r11091 r11100 93 93 $user_query = array( 94 94 'count_total' => '', // Prevents total count. 95 'populate_extras' => false,96 95 'type' => 'alphabetical', 97 96 … … 116 115 $group_query = array( 117 116 'count_total' => '', // Prevents total count. 118 'populate_extras' => false,119 117 'type' => 'alphabetical', 120 118 -
trunk/src/bp-groups/classes/class-bp-groups-template.php
r11095 r11100 172 172 'group_type__not_in' => '', 173 173 'meta_query' => false, 174 'populate_extras' => true,175 174 'update_meta_cache' => true, 176 175 'update_admin_cache' => false, … … 227 226 'exclude' => $exclude, 228 227 'parent_id' => $parent_id, 229 'populate_extras' => $populate_extras,230 228 'update_meta_cache' => $update_meta_cache, 231 229 'update_admin_cache' => $update_admin_cache,
Note: See TracChangeset
for help on using the changeset viewer.