fixed comments query

This commit is contained in:
claudiosmweb 2014-08-12 12:05:09 -03:00
parent 5bc293a69c
commit 507a2038e8
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ class WC_Comments {
if ( $clauses['where'] )
$clauses['where'] .= ' AND ';
$clauses['where'] .= " $wpdb->posts.post_type NOT IN ('" . implode( ',', wc_get_order_types() ) . "') ";
$clauses['where'] .= " $wpdb->posts.post_type NOT IN ('" . implode( "','", wc_get_order_types() ) . "') ";
return $clauses;
}
@ -98,7 +98,7 @@ class WC_Comments {
if ( $where )
$where .= ' AND ';
$where .= " $wpdb->posts.post_type NOT IN ('" . implode( ',', wc_get_order_types() ) . "') ";
$where .= " $wpdb->posts.post_type NOT IN ('" . implode( "','", wc_get_order_types() ) . "') ";
return $where;
}