Skip to:
Content

BuddyPress.org

Changeset 7154


Ignore:
Timestamp:
06/04/2013 06:04:34 PM (11 years ago)
Author:
boonebgorges
Message:

Don't pass func_get_args() directly to apply_filters() in groups_get_group_members()

PHP 5.2.x does not allow this syntax, so we have to put the value into a
variable first.

File:
1 edited

Legend:

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

    r7145 r7154  
    400400
    401401    // For legacy users. Use of BP_Groups_Member::get_all_for_group()
    402     // is deprecated.
    403     if ( apply_filters( 'bp_use_legacy_group_member_query', false, __FUNCTION__, func_get_args() ) ) {
     402    // is deprecated. func_get_args() can't be passed to a function in PHP
     403    // 5.2.x, so we create a variable
     404    $func_args = func_get_args();
     405    if ( apply_filters( 'bp_use_legacy_group_member_query', false, __FUNCTION__, $func_args ) ) {
    404406        $retval = BP_Groups_Member::get_all_for_group( $group_id, $limit, $page, $exclude_admins_mods, $exclude_banned, $exclude );
    405407    } else {
Note: See TracChangeset for help on using the changeset viewer.