Merge pull request #20423 from rnaby/070618-123409-wc-product-data-store-cpt
Condition Checking Improved
This commit is contained in:
commit
f671c23fe3
|
@ -1398,7 +1398,7 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da
|
|||
}
|
||||
}
|
||||
|
||||
if ( $search_queries ) {
|
||||
if ( ! empty( $search_queries ) ) {
|
||||
$search_where = 'AND (' . implode( ') OR (', $search_queries ) . ')';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue