Skip to:
Content

BuddyPress.org

Changeset 7091


Ignore:
Timestamp:
05/19/2013 02:40:18 AM (7 years ago)
Author:
boonebgorges
Message:

Don't use extract in bp_group_has_members. See #4482

File:
1 edited

Legend:

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

    r7087 r7091  
    19781978    global $members_template;
    19791979
    1980     $defaults = array(
     1980    $r = wp_parse_args( $args, array(
    19811981        'group_id' => bp_get_current_group_id(),
    19821982        'per_page' => 20,
     
    19851985        'exclude_admins_mods' => 1,
    19861986        'exclude_banned' => 1
    1987     );
    1988 
    1989     $r = wp_parse_args( $args, $defaults );
    1990     extract( $r, EXTR_SKIP );
    1991 
    1992     $members_template = new BP_Groups_Group_Members_Template( $group_id, $per_page, $max, (int) $exclude_admins_mods, (int) $exclude_banned, $exclude );
     1987    ) );
     1988
     1989    $members_template = new BP_Groups_Group_Members_Template( $r['group_id'], $r['per_page'], $r['max'], (int) $r['exclude_admins_mods'], (int) $r['exclude_banned'], $r['exclude'] );
    19931990    return apply_filters( 'bp_group_has_members', $members_template->has_members(), $members_template );
    19941991}
Note: See TracChangeset for help on using the changeset viewer.