Skip to:
Content

BuddyPress.org

Changeset 7800


Ignore:
Timestamp:
02/05/2014 07:58:56 PM (10 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

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-classes.php

    r7778 r7800  
    919919
    920920            // Legacy query - not recommended
    921             if ( apply_filters( 'bp_use_legacy_activity_query', false, __METHOD__, func_get_args() ) ) {
     921            $func_args = func_get_args();
     922            if ( apply_filters( 'bp_use_legacy_activity_query', false, __METHOD__, $func_args ) ) {
    922923                $sql = apply_filters( 'bp_activity_comments_user_join_filter', $wpdb->prepare( "SELECT a.*, u.user_email, u.user_nicename, u.user_login, u.display_name{$fullname_select} FROM {$bp->activity->table_name} a, {$wpdb->users} u{$fullname_from} WHERE u.ID = a.user_id {$fullname_where} AND a.type = 'activity_comment' {$spam_sql} AND a.item_id = %d AND a.mptt_left > %d AND a.mptt_left < %d ORDER BY a.date_recorded ASC", $top_level_parent_id, $left, $right ), $activity_id, $left, $right, $spam_sql );
    923924
  • trunk/bp-core/bp-core-classes.php

    r7703 r7800  
    19941994     */
    19951995    public function walk( $elements, $max_depth ) {
    1996         $args   = array_slice( func_get_args(), 2 );
     1996        $func_args = func_get_args();
     1997
     1998        $args   = array_slice( $func_args, 2 );
    19971999        $output = '';
    19982000
  • 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.