From 1af659e73bd0128f4bb52e57eef4f8603852580a Mon Sep 17 00:00:00 2001 From: Gerhard Date: Fri, 26 Oct 2018 13:16:16 +0200 Subject: [PATCH] comment_type should be review for the latest reviews dashboard widget. --- includes/admin/class-wc-admin-dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/class-wc-admin-dashboard.php b/includes/admin/class-wc-admin-dashboard.php index 692fdea58eb..09a19572491 100644 --- a/includes/admin/class-wc-admin-dashboard.php +++ b/includes/admin/class-wc-admin-dashboard.php @@ -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