From 861d42f3680803be98cbe977235cd3c6f0ddda7c Mon Sep 17 00:00:00 2001 From: Manos Psychogyiopoulos Date: Tue, 9 Apr 2019 05:48:08 +0300 Subject: [PATCH] Fix IN type --- includes/data-stores/class-wc-product-data-store-cpt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/data-stores/class-wc-product-data-store-cpt.php b/includes/data-stores/class-wc-product-data-store-cpt.php index 0037349ff4c..eb6bdc80ddc 100644 --- a/includes/data-stores/class-wc-product-data-store-cpt.php +++ b/includes/data-stores/class-wc-product-data-store-cpt.php @@ -1494,7 +1494,7 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da } if ( ! empty( $exclude ) && is_array( $exclude ) ) { - $search_where .= " AND posts.ID NOT IN('" . implode( "','", array_map( 'absint', $exclude ) ) . "') "; + $search_where .= ' AND posts.ID NOT IN(' . implode( ',', array_map( 'absint', $exclude ) ) . ') '; } if ( 'virtual' === $type ) {