diff --git a/includes/class-wc-comments.php b/includes/class-wc-comments.php index d1e02c4b93c..c28f73165ff 100644 --- a/includes/class-wc-comments.php +++ b/includes/class-wc-comments.php @@ -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' "; } /**