From 122620f0313d522d69317d0118feda2ae2f72161 Mon Sep 17 00:00:00 2001 From: Jeff Stieler Date: Tue, 14 May 2019 08:30:00 -0600 Subject: [PATCH] =?UTF-8?q?Sanitize=20customer=20IDs=20in=20=E2=80=9Cget?= =?UTF-8?q?=20customers=20by=20orders=E2=80=9D=20query.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data-stores/class-wc-admin-reports-orders-data-store.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-reports-orders-data-store.php b/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-reports-orders-data-store.php index 4458ef084cb..36645d7e3b0 100644 --- a/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-reports-orders-data-store.php +++ b/plugins/woocommerce-admin/includes/data-stores/class-wc-admin-reports-orders-data-store.php @@ -350,7 +350,7 @@ class WC_Admin_Reports_Orders_Data_Store extends WC_Admin_Reports_Data_Store imp foreach ( $orders as $order ) { if ( $order['customer_id'] ) { - $customer_ids[] = $order['customer_id']; + $customer_ids[] = intval( $order['customer_id'] ); } }