Removed variable and set exception paramater to array containing the order id.

This commit is contained in:
Jacob McKinney 2019-11-20 22:52:04 -06:00
parent 34036d8f7d
commit 0d35e2e5eb
1 changed files with 1 additions and 2 deletions

View File

@ -22,7 +22,6 @@ 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 ) {
@ -47,7 +46,7 @@ class WC_Order_Factory {
try {
return new $classname( $order_id );
} catch ( Exception $e ) {
wc_caught_exception( $e, __FUNCTION__, $passed_args );
wc_caught_exception( $e, __FUNCTION__, array( $order_id ) );
return false;
}
}