Merge pull request #28624 from woocommerce/fix/27688

Also include empty string and comment types for backward compat.
This commit is contained in:
Claudio Sanches 2020-12-21 12:11:09 -03:00 committed by GitHub
commit 8cc953950e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()
)