Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/14/2016 01:34:44 AM (8 years ago)
Author:
boonebgorges
Message:

Groups: Eliminate the populate_extras option from the bp_has_groups() stack.

Fun fact: Now that all these values are cached and lazy-loaded, the
parameter no longer does anything. Begone!

See #5451.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-template.php

    r11095 r11100  
    135135 *     @type array|string $include            Array or comma-separated list of group IDs. Results will be limited
    136136 *                                            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.
    139137 *     @type array|string $exclude            Array or comma-separated list of group IDs. Results will exclude
    140138 *                                            the listed groups. Default: false.
     
    206204        'exclude'            => false,
    207205        'parent_id'          => null,
    208         'populate_extras'    => true,
    209206        'update_meta_cache'  => true,
    210207        'update_admin_cache' => bp_is_groups_directory() || bp_is_user_groups(),
     
    231228        'exclude'            => $r['exclude'],
    232229        'parent_id'          => $r['parent_id'],
    233         'populate_extras'    => (bool) $r['populate_extras'],
    234230        'update_meta_cache'  => (bool) $r['update_meta_cache'],
    235231        'update_admin_cache' => (bool) $r['update_admin_cache'],
Note: See TracChangeset for help on using the changeset viewer.