Fix IN type

This commit is contained in:
Manos Psychogyiopoulos 2019-04-09 05:48:08 +03:00
parent b1d7b2c6d0
commit 861d42f368
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {