From 4c3866006e5cae9e56f6568fa6333f2987e24f44 Mon Sep 17 00:00:00 2001 From: DmitreyZl <70319100+DmitreyZl@users.noreply.github.com> Date: Fri, 4 Sep 2020 14:17:11 +0300 Subject: [PATCH] Update class-wc-retailcrm-history.php --- src/include/class-wc-retailcrm-history.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/include/class-wc-retailcrm-history.php b/src/include/class-wc-retailcrm-history.php index 1a80ac1..d8d2ad6 100644 --- a/src/include/class-wc-retailcrm-history.php +++ b/src/include/class-wc-retailcrm-history.php @@ -563,14 +563,6 @@ if ( ! class_exists( 'WC_Retailcrm_History' ) ) : return false; } - if (is_array($this->order_methods) - && $this->order_methods - && isset($order['orderMethod']) - && !in_array($order['orderMethod'], $this->order_methods) - ) { - return false; - } - $orderResponse = $this->retailcrm->ordersGet($order['id'], 'id'); if (null !== $orderResponse && $orderResponse->offsetExists('order')) {