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:
parent
23afdd3d5f
commit
34036d8f7d
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue