Replaced call to func_get_args() in WC_Order_Factory::get_order() with a variable to store the original passed arguments.

This commit is contained in:
Jacob McKinney 2019-10-15 22:11:44 -05:00
parent 23afdd3d5f
commit 34036d8f7d
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ class WC_Order_Factory {
* @return WC_Order|bool
*/
public static function get_order( $order_id = false ) {
$passed_args = $order_id;
$order_id = self::get_order_id( $order_id );
if ( ! $order_id ) {
@ -46,7 +47,7 @@ class WC_Order_Factory {
try {
return new $classname( $order_id );
} catch ( Exception $e ) {
wc_caught_exception( $e, __FUNCTION__, func_get_args() );
wc_caught_exception( $e, __FUNCTION__, $passed_args );
return false;
}
}