Merge pull request #15862 from woocommerce/fix/exclude-comment-where
Comment feed where clauses should be appended
This commit is contained in:
commit
62800a68f9
|
@ -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' ";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue