Skip to:
Content

BuddyPress.org

Changeset 6131


Ignore:
Timestamp:
06/23/2012 10:58:06 AM (14 years ago)
Author:
djpaul
Message:

Don't use func_get_args() directly as a function parameter for compatibility with PHP 5.2.x.
Fixes #4294

Location:
trunk
Files:
3 edited

Legend:

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

    r5993 r6131  
    129129                        );
    130130
    131                         $args = bp_core_parse_args_array( $old_args_keys, func_get_args() );
     131                        $func_args = func_get_args();
     132                        $args      = bp_core_parse_args_array( $old_args_keys, $func_args );
    132133                }
    133134
  • trunk/bp-activity/bp-activity-template.php

    r5994 r6131  
    135135                                12 => 'page_arg'
    136136                        );
    137                        
    138                         $args = bp_core_parse_args_array( $old_args_keys, func_get_args() );
     137
     138                        $func_args = func_get_args();
     139                        $args = bp_core_parse_args_array( $old_args_keys, $func_args );
    139140                }
    140141               
  • trunk/bp-core/bp-core-functions.php

    r6093 r6131  
    979979 *   );
    980980 *
    981  * For the second argument, $func_args, you should just pass func_get_args().
     981 * For the second argument, $func_args, you should just pass the value of func_get_args().
    982982 *
    983983 * @since BuddyPress (1.6)
Note: See TracChangeset for help on using the changeset viewer.