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-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
Note: See TracChangeset for help on using the changeset viewer.