Also include empty string and comment types for backward compat.

This commit is contained in:
vedanshujain 2020-12-18 18:08:33 +05:30
parent 934b10fb8c
commit 1bc2ea8754
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ class WC_Comments {
WHERE comment_parent = 0
AND comment_post_ID = %d
AND comment_approved = '1'
AND comment_type = 'review'
AND comment_type in ( 'review', '', 'comment' )
",
$product->get_id()
)