diff --git a/includes/payments/functions.php b/includes/payments/functions.php index 46b3c07421..6c7829ac1c 100644 --- a/includes/payments/functions.php +++ b/includes/payments/functions.php @@ -1706,6 +1706,8 @@ function edd_remove_payment_notes_in_comment_counts( $stats, $post_id ) { if ( false !== $stats ) return $stats; + $stats = []; + $where = 'WHERE comment_type != "edd_payment_note"'; if ( $post_id > 0 )