diff --git a/plugins/woocommerce/src/Caches/OrderCache.php b/plugins/woocommerce/src/Caches/OrderCache.php index c4f0a7e31f3..e64d55e9ed6 100644 --- a/plugins/woocommerce/src/Caches/OrderCache.php +++ b/plugins/woocommerce/src/Caches/OrderCache.php @@ -51,6 +51,6 @@ class OrderCache extends ObjectCache { * @return array|object|null The retrieved object, or null if it's not possible to retrieve an object by the given id. */ protected function get_from_datastore( $id ) { - return wc_get_order( $id ); + return null; } }