Merge pull request #15862 from woocommerce/fix/exclude-comment-where

Comment feed where clauses should be appended
This commit is contained in:
Claudiu Lodromanean 2017-06-29 11:23:08 -07:00 committed by GitHub
commit 62800a68f9
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class WC_Comments {
* @return string
*/
public static function exclude_order_comments_from_feed_where( $where ) {
return ( $where ? ' AND ' : '' ) . " comment_type != 'order_note' ";
return $where . ( $where ? ' AND ' : '' ) . " comment_type != 'order_note' ";
}
/**
@ -125,7 +125,7 @@ class WC_Comments {
* @return string
*/
public static function exclude_webhook_comments_from_feed_where( $where ) {
return ( $where ? ' AND ' : '' ) . " comment_type != 'webhook_delivery' ";
return $where . ( $where ? ' AND ' : '' ) . " comment_type != 'webhook_delivery' ";
}
/**