diff --git a/includes/wc-core-functions.php b/includes/wc-core-functions.php index 750095f76ff..2a1cfd32c1f 100644 --- a/includes/wc-core-functions.php +++ b/includes/wc-core-functions.php @@ -1826,7 +1826,7 @@ function wc_print_r( $expression, $return = false ) { foreach ( $alternatives as $alternative ) { if ( function_exists( $alternative['func'] ) ) { - $res = call_user_func_array( $alternative['func'], $alternative['args'] ); + $res = $alternative['func']( ...$alternative['args'] ); if ( $return ) { return $res; }