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-core/bp-core-functions.php

    r11362 r11363  
    123123    $callback = function( $a, $b ) use ( $key, $type ) {
    124124        $values = array( 0 => false, 1 => false );
    125         $func_args = func_get_args();
    126         foreach ( $func_args as $indexi => $index ) {
     125        foreach ( func_get_args() as $indexi => $index ) {
    127126            if ( isset( $index->{$key} ) ) {
    128127                $values[ $indexi ] = $index->{$key};
Note: See TracChangeset for help on using the changeset viewer.