Changeset 12426
- Timestamp:
- 08/08/2019 08:11:51 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 11 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 /** -
trunk/src/bp-activity/classes/class-bp-activity-template.php
r11764 r12426 140 140 $bp = buddypress(); 141 141 142 $function_args = func_get_args(); 143 142 144 // Backward compatibility with old method of passing arguments. 143 if ( !is_array( $args ) || func_num_args() > 1 ) {145 if ( !is_array( $args ) || count( $function_args ) > 1 ) { 144 146 _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__ ) ); 145 147 … … 160 162 ); 161 163 162 $args = bp_core_parse_args_array( $old_args_keys, func_get_args());164 $args = bp_core_parse_args_array( $old_args_keys, $function_args ); 163 165 } 164 166 -
trunk/src/bp-groups/bp-groups-functions.php
r12405 r12426 240 240 */ 241 241 function groups_edit_base_group_details( $args = array() ) { 242 $function_args = func_get_args(); 242 243 243 244 // Backward compatibility with old method of passing arguments. 244 if ( ! is_array( $args ) || func_num_args() > 1 ) {245 if ( ! is_array( $args ) || count( $function_args ) > 1 ) { 245 246 _deprecated_argument( __METHOD__, '2.9.0', 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__ ) ); 246 247 … … 252 253 ); 253 254 254 $args = bp_core_parse_args_array( $old_args_keys, func_get_args());255 $args = bp_core_parse_args_array( $old_args_keys, $function_args ); 255 256 } 256 257 … … 690 691 */ 691 692 function groups_get_group_members( $args = array() ) { 693 $function_args = func_get_args(); 692 694 693 695 // Backward compatibility with old method of passing arguments. 694 if ( ! is_array( $args ) || func_num_args() > 1 ) {696 if ( ! is_array( $args ) || count( $function_args ) > 1 ) { 695 697 _deprecated_argument( __METHOD__, '2.0.0', 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__ ) ); 696 698 … … 705 707 ); 706 708 707 $args = bp_core_parse_args_array( $old_args_keys, func_get_args());709 $args = bp_core_parse_args_array( $old_args_keys, $function_args ); 708 710 } 709 711 … … 721 723 722 724 // For legacy users. Use of BP_Groups_Member::get_all_for_group() is deprecated. 723 if ( apply_filters( 'bp_use_legacy_group_member_query', false, __FUNCTION__, func_get_args()) ) {725 if ( apply_filters( 'bp_use_legacy_group_member_query', false, __FUNCTION__, $function_args ) ) { 724 726 $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'] ); 725 727 } else { -
trunk/src/bp-groups/classes/class-bp-groups-group-members-template.php
r11805 r12426 94 94 */ 95 95 public function __construct( $args = array() ) { 96 $function_args = func_get_args(); 96 97 97 98 // Backward compatibility with old method of passing arguments. 98 if ( ! is_array( $args ) || func_num_args() > 1 ) {99 if ( ! is_array( $args ) || count( $function_args ) > 1 ) { 99 100 _deprecated_argument( __METHOD__, '2.0.0', 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__ ) ); 100 101 … … 109 110 ); 110 111 111 $args = bp_core_parse_args_array( $old_args_keys, func_get_args());112 $args = bp_core_parse_args_array( $old_args_keys, $function_args ); 112 113 } 113 114 -
trunk/src/bp-groups/classes/class-bp-groups-group.php
r12326 r12426 1047 1047 global $wpdb; 1048 1048 1049 $function_args = func_get_args(); 1050 1049 1051 // Backward compatibility with old method of passing arguments. 1050 if ( ! is_array( $args ) || func_num_args() > 1 ) {1052 if ( ! is_array( $args ) || count( $function_args ) > 1 ) { 1051 1053 _deprecated_argument( __METHOD__, '1.7', 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__ ) ); 1052 1054 … … 1063 1065 ); 1064 1066 1065 $args = bp_core_parse_args_array( $old_args_keys, func_get_args());1067 $args = bp_core_parse_args_array( $old_args_keys, $function_args ); 1066 1068 } 1067 1069 -
trunk/src/bp-groups/classes/class-bp-groups-invite-template.php
r11805 r12426 79 79 */ 80 80 public function __construct( $args = array() ) { 81 $function_args = func_get_args(); 81 82 82 83 // Backward compatibility with old method of passing arguments. 83 if ( ! is_array( $args ) || func_num_args() > 1 ) {84 if ( ! is_array( $args ) || count( $function_args ) > 1 ) { 84 85 _deprecated_argument( __METHOD__, '2.0.0', 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__ ) ); 85 86 … … 89 90 ); 90 91 91 $args = bp_core_parse_args_array( $old_args_keys, func_get_args());92 $args = bp_core_parse_args_array( $old_args_keys, $function_args ); 92 93 } 93 94 -
trunk/src/bp-groups/classes/class-bp-groups-membership-requests-template.php
r11805 r12426 86 86 */ 87 87 public function __construct( $args = array() ) { 88 $function_args = func_get_args(); 88 89 89 90 // Backward compatibility with old method of passing arguments. 90 if ( ! is_array( $args ) || func_num_args() > 1 ) {91 if ( ! is_array( $args ) || count( $function_args ) > 1 ) { 91 92 _deprecated_argument( __METHOD__, '2.0.0', 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__ ) ); 92 93 … … 97 98 ); 98 99 99 $args = bp_core_parse_args_array( $old_args_keys, func_get_args());100 $args = bp_core_parse_args_array( $old_args_keys, $function_args ); 100 101 } 101 102 -
trunk/src/bp-groups/classes/class-bp-groups-template.php
r11805 r12426 129 129 */ 130 130 function __construct( $args = array() ){ 131 $function_args = func_get_args(); 131 132 132 133 // Backward compatibility with old method of passing arguments. 133 if ( ! is_array( $args ) || func_num_args() > 1 ) {134 if ( ! is_array( $args ) || count( $function_args ) > 1 ) { 134 135 _deprecated_argument( __METHOD__, '1.7', 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__ ) ); 135 136 … … 149 150 ); 150 151 151 $args = bp_core_parse_args_array( $old_args_keys, func_get_args());152 $args = bp_core_parse_args_array( $old_args_keys, $function_args ); 152 153 } 153 154 -
trunk/src/bp-messages/classes/class-bp-messages-box-template.php
r11363 r12426 108 108 */ 109 109 public function __construct( $args = array() ) { 110 $function_args = func_get_args(); 110 111 111 112 // Backward compatibility with old method of passing arguments. 112 if ( ! is_array( $args ) || func_num_args() > 1 ) {113 if ( ! is_array( $args ) || count( $function_args ) > 1 ) { 113 114 _deprecated_argument( __METHOD__, '2.2.0', 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__ ) ); 114 115 … … 123 124 ); 124 125 125 $args = bp_core_parse_args_array( $old_args_keys, func_get_args());126 $args = bp_core_parse_args_array( $old_args_keys, $function_args ); 126 127 } 127 128 -
trunk/src/bp-messages/classes/class-bp-messages-thread.php
r11578 r12426 446 446 global $wpdb; 447 447 448 $function_args = func_get_args(); 449 448 450 // Backward compatibility with old method of passing arguments. 449 if ( ! is_array( $args ) || func_num_args() > 1 ) {451 if ( ! is_array( $args ) || count( $function_args ) > 1 ) { 450 452 _deprecated_argument( __METHOD__, '2.2.0', 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__ ) ); 451 453 … … 459 461 ); 460 462 461 $args = bp_core_parse_args_array( $old_args_keys, func_get_args());463 $args = bp_core_parse_args_array( $old_args_keys, $function_args ); 462 464 } 463 465 -
trunk/src/bp-xprofile/classes/class-bp-xprofile-data-template.php
r11363 r12426 124 124 */ 125 125 public function __construct( $args = '' ) { 126 $function_args = func_get_args(); 126 127 127 128 // Backward compatibility with old method of passing arguments. 128 if ( ! is_array( $args ) || func_num_args() > 1 ) {129 if ( ! is_array( $args ) || count( $function_args ) > 1 ) { 129 130 _deprecated_argument( __METHOD__, '2.3.0', 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__ ) ); 130 131 … … 142 143 ); 143 144 144 $args = bp_core_parse_args_array( $old_args_keys, func_get_args());145 $args = bp_core_parse_args_array( $old_args_keys, $function_args ); 145 146 } 146 147
Note: See TracChangeset
for help on using the changeset viewer.