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