Changeset 11363
- Timestamp:
- 12/29/2016 09:24:53 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/classes/class-bp-activity-activity.php
r11359 r11363 377 377 ); 378 378 379 $func_args = func_get_args(); 380 $args = bp_core_parse_args_array( $old_args_keys, $func_args ); 379 $args = bp_core_parse_args_array( $old_args_keys, func_get_args() ); 381 380 } 382 381 … … 1475 1474 1476 1475 // Legacy query - not recommended. 1477 $func_args = func_get_args();1478 1476 1479 1477 /** … … 1486 1484 * @param array $func_args Array of the method's argument list. 1487 1485 */ 1488 if ( apply_filters( 'bp_use_legacy_activity_query', false, __METHOD__, $func_args) ) {1486 if ( apply_filters( 'bp_use_legacy_activity_query', false, __METHOD__, func_get_args() ) ) { 1489 1487 1490 1488 /** -
trunk/src/bp-activity/classes/class-bp-activity-template.php
r10516 r11363 160 160 ); 161 161 162 $func_args = func_get_args(); 163 $args = bp_core_parse_args_array( $old_args_keys, $func_args ); 162 $args = bp_core_parse_args_array( $old_args_keys, func_get_args() ); 164 163 } 165 164 -
trunk/src/bp-core/bp-core-functions.php
r11362 r11363 123 123 $callback = function( $a, $b ) use ( $key, $type ) { 124 124 $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 ) { 127 126 if ( isset( $index->{$key} ) ) { 128 127 $values[ $indexi ] = $index->{$key}; -
trunk/src/bp-core/classes/class-bp-walker-nav-menu.php
r10417 r11363 56 56 */ 57 57 public function walk( $elements, $max_depth ) { 58 $func_args = func_get_args(); 59 60 $args = array_slice( $func_args, 2 ); 58 $args = array_slice( func_get_args(), 2 ); 61 59 $output = ''; 62 60 -
trunk/src/bp-forums/bp-forums-bbpress-sa.php
r11032 r11363 237 237 parent::__construct( $dbuser, $dbpassword, $dbname, $dbhost ); 238 238 239 $args = func_get_args(); 240 $args = call_user_func_array( array( &$this, 'init' ), $args ); 239 $args = call_user_func_array( array( &$this, 'init' ), func_get_args() ); 241 240 242 241 if ( $args['host'] ) -
trunk/src/bp-groups/bp-groups-functions.php
r11358 r11363 613 613 ); 614 614 615 $func_args = func_get_args(); 616 $args = bp_core_parse_args_array( $old_args_keys, $func_args ); 615 $args = bp_core_parse_args_array( $old_args_keys, func_get_args() ); 617 616 } 618 617 … … 629 628 ) ); 630 629 631 // For legacy users. Use of BP_Groups_Member::get_all_for_group() 632 // is deprecated. func_get_args() can't be passed to a function in PHP 633 // 5.2.x, so we create a variable. 634 $func_args = func_get_args(); 635 if ( apply_filters( 'bp_use_legacy_group_member_query', false, __FUNCTION__, $func_args ) ) { 630 // For legacy users. Use of BP_Groups_Member::get_all_for_group() is deprecated. 631 if ( apply_filters( 'bp_use_legacy_group_member_query', false, __FUNCTION__, func_get_args() ) ) { 636 632 $retval = BP_Groups_Member::get_all_for_group( $r['group_id'], $r['per_page'], $r['page'], $r['exclude_admins_mods'], $r['exclude_banned'], $r['exclude'] ); 637 633 } else { -
trunk/src/bp-groups/classes/class-bp-groups-group-members-template.php
r11091 r11363 109 109 ); 110 110 111 $func_args = func_get_args(); 112 $args = bp_core_parse_args_array( $old_args_keys, $func_args ); 111 $args = bp_core_parse_args_array( $old_args_keys, func_get_args() ); 113 112 } 114 113 -
trunk/src/bp-groups/classes/class-bp-groups-group.php
r11199 r11363 929 929 ); 930 930 931 $func_args = func_get_args(); 932 $args = bp_core_parse_args_array( $old_args_keys, $func_args ); 931 $args = bp_core_parse_args_array( $old_args_keys, func_get_args() ); 933 932 } 934 933 -
trunk/src/bp-groups/classes/class-bp-groups-invite-template.php
r11083 r11363 89 89 ); 90 90 91 $func_args = func_get_args(); 92 $args = bp_core_parse_args_array( $old_args_keys, $func_args ); 91 $args = bp_core_parse_args_array( $old_args_keys, func_get_args() ); 93 92 } 94 93 -
trunk/src/bp-groups/classes/class-bp-groups-membership-requests-template.php
r10531 r11363 97 97 ); 98 98 99 $func_args = func_get_args(); 100 $args = bp_core_parse_args_array( $old_args_keys, $func_args ); 99 $args = bp_core_parse_args_array( $old_args_keys, func_get_args() ); 101 100 } 102 101 -
trunk/src/bp-groups/classes/class-bp-groups-template.php
r11100 r11363 149 149 ); 150 150 151 $func_args = func_get_args(); 152 $args = bp_core_parse_args_array( $old_args_keys, $func_args ); 151 $args = bp_core_parse_args_array( $old_args_keys, func_get_args() ); 153 152 } 154 153 -
trunk/src/bp-messages/classes/class-bp-messages-box-template.php
r10522 r11363 123 123 ); 124 124 125 $func_args = func_get_args(); 126 $args = bp_core_parse_args_array( $old_args_keys, $func_args ); 125 $args = bp_core_parse_args_array( $old_args_keys, func_get_args() ); 127 126 } 128 127 -
trunk/src/bp-messages/classes/class-bp-messages-thread.php
r11310 r11363 454 454 ); 455 455 456 $func_args = func_get_args(); 457 $args = bp_core_parse_args_array( $old_args_keys, $func_args ); 456 $args = bp_core_parse_args_array( $old_args_keys, func_get_args() ); 458 457 } 459 458 -
trunk/src/bp-xprofile/classes/class-bp-xprofile-data-template.php
r10740 r11363 142 142 ); 143 143 144 $func_args = func_get_args(); 145 $args = bp_core_parse_args_array( $old_args_keys, $func_args ); 144 $args = bp_core_parse_args_array( $old_args_keys, func_get_args() ); 146 145 } 147 146
Note: See TracChangeset
for help on using the changeset viewer.