Changeset 12426 for trunk/src/bp-groups/bp-groups-functions.php
- Timestamp:
- 08/08/2019 08:11:51 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 {
Note: See TracChangeset
for help on using the changeset viewer.