Sanitize customer IDs in “get customers by orders” query.

This commit is contained in:
Jeff Stieler 2019-05-14 08:30:00 -06:00
parent 071dc7debe
commit 122620f031
1 changed files with 1 additions and 1 deletions

View File

@ -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'] );
}
}