Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/05/2014 07:58:56 PM (11 years ago)
Author:
boonebgorges
Message:

Don't use func_get_args() as a function paramater

This should appease certain PHP 5.2 setups, including travis-ci

See #4294

File:
1 edited

Legend:

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

    r7798 r7800  
    113113    usort( $items, create_function( '$a, $b', '
    114114        $values = array( 0 => false, 1 => false, );
    115         foreach ( func_get_args() as $indexi => $index ) {
     115        $func_args = func_get_args();
     116        foreach ( $func_args as $indexi => $index ) {
    116117            if ( isset( $index->' . $key . ' ) ) {
    117118                $values[ $indexi ] = $index->' . $key . ';
Note: See TracChangeset for help on using the changeset viewer.