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