Merge pull request #21689 from woocommerce/fix/dashboard-review-widget
Use correct comment_type when fetching recent reviews for widget
This commit is contained in:
commit
13df533cc4
|
@ -275,7 +275,7 @@ if ( ! class_exists( 'WC_Admin_Dashboard', false ) ) :
|
|||
"FROM {$wpdb->comments} comments
|
||||
LEFT JOIN {$wpdb->posts} posts ON (comments.comment_post_ID = posts.ID)
|
||||
WHERE comments.comment_approved = '1'
|
||||
AND comments.comment_type = ''
|
||||
AND comments.comment_type = 'review'
|
||||
AND posts.post_password = ''
|
||||
AND posts.post_type = 'product'
|
||||
AND comments.comment_parent = 0
|
||||
|
|
Loading…
Reference in New Issue