- Timestamp:
- 08/08/2019 08:11:51 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/classes/class-bp-activity-activity.php
r12420 r12426 361 361 global $wpdb; 362 362 363 $function_args = func_get_args(); 364 363 365 // Backward compatibility with old method of passing arguments. 364 if ( !is_array( $args ) || func_num_args() > 1 ) {366 if ( !is_array( $args ) || count( $function_args ) > 1 ) { 365 367 _deprecated_argument( __METHOD__, '1.6', sprintf( __( 'Arguments passed to %1$s should be in an associative array. See the inline documentation at %2$s for more details.', 'buddypress' ), __METHOD__, __FILE__ ) ); 366 368 … … 379 381 ); 380 382 381 $args = bp_core_parse_args_array( $old_args_keys, func_get_args());383 $args = bp_core_parse_args_array( $old_args_keys, $function_args ); 382 384 } 383 385 … … 1468 1470 global $wpdb; 1469 1471 1472 $function_args = func_get_args(); 1473 1470 1474 if ( empty( $top_level_parent_id ) ) { 1471 1475 $top_level_parent_id = $activity_id; … … 1515 1519 * @param array $func_args Array of the method's argument list. 1516 1520 */ 1517 if ( apply_filters( 'bp_use_legacy_activity_query', false, __METHOD__, func_get_args()) ) {1521 if ( apply_filters( 'bp_use_legacy_activity_query', false, __METHOD__, $function_args ) ) { 1518 1522 1519 1523 /**
Note: See TracChangeset
for help on using the changeset viewer.