Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/29/2016 09:24:53 PM (9 years ago)
Author:
boonebgorges
Message:

Stop assigning func_get_args() to a variable.

This was a workaround for a syntax limitation in PHP 5.2.

See #7299.

File:
1 edited

Legend:

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

    r11358 r11363  
    613613        );
    614614
    615         $func_args = func_get_args();
    616         $args      = bp_core_parse_args_array( $old_args_keys, $func_args );
     615        $args = bp_core_parse_args_array( $old_args_keys, func_get_args() );
    617616    }
    618617
     
    629628    ) );
    630629
    631     // For legacy users. Use of BP_Groups_Member::get_all_for_group()
    632     // is deprecated. func_get_args() can't be passed to a function in PHP
    633     // 5.2.x, so we create a variable.
    634     $func_args = func_get_args();
    635     if ( apply_filters( 'bp_use_legacy_group_member_query', false, __FUNCTION__, $func_args ) ) {
     630    // For legacy users. Use of BP_Groups_Member::get_all_for_group() is deprecated.
     631    if ( apply_filters( 'bp_use_legacy_group_member_query', false, __FUNCTION__, func_get_args() ) ) {
    636632        $retval = BP_Groups_Member::get_all_for_group( $r['group_id'], $r['per_page'], $r['page'], $r['exclude_admins_mods'], $r['exclude_banned'], $r['exclude'] );
    637633    } else {
Note: See TracChangeset for help on using the changeset viewer.