Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/13/2016 05:35:55 AM (3 years ago)
Author:
boonebgorges
Message:

Use new groups_get_group() syntax throughout BP.

See #5451.

File:
1 edited

Legend:

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

    r11086 r11091  
    13741374    }
    13751375
    1376     // Fetch group admins if 'populate_extras' flag is false.
    1377     if ( empty( $group->args['populate_extras'] ) ) {
    1378         $query = new BP_Group_Member_Query( array(
    1379             'group_id'   => $group->id,
    1380             'group_role' => 'admin',
    1381             'type'       => 'first_joined',
    1382         ) );
    1383 
    1384         if ( ! empty( $query->results ) ) {
    1385             $group->admins = $query->results;
    1386         }
    1387     }
    1388 
    13891376    if ( ! empty( $group->admins ) ) { ?>
    13901377        <ul id="group-admins">
     
    14141401    if ( empty( $group ) ) {
    14151402        $group =& $groups_template->group;
    1416     }
    1417 
    1418     // Fetch group mods if 'populate_extras' flag is false.
    1419     if ( empty( $group->args['populate_extras'] ) ) {
    1420         $query = new BP_Group_Member_Query( array(
    1421             'group_id'   => $group->id,
    1422             'group_role' => 'mod',
    1423             'type'       => 'first_joined',
    1424         ) );
    1425 
    1426         if ( ! empty( $query->results ) ) {
    1427             $group->mods = $query->results;
    1428         }
    14291403    }
    14301404
Note: See TracChangeset for help on using the changeset viewer.