diff --git a/admin/tools/dashboard.php b/admin/tools/dashboard.php index 8287b6f5..760dc3ee 100644 --- a/admin/tools/dashboard.php +++ b/admin/tools/dashboard.php @@ -70,44 +70,6 @@ class SP_Admin_Dashboard { get_results( "SELECT *, SUBSTRING(comment_content,1,100) AS comment_excerpt - FROM $wpdb->comments - LEFT JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) - WHERE comment_approved = '1' - AND comment_type = '' - AND post_password = '' - AND post_type = 'product' - ORDER BY comment_date_gmt DESC - LIMIT 8" ); - - if ( $comments ) { - echo '
' . wp_kses_data( $comment->comment_excerpt ) . ' [...]
' . __( 'There are no product reviews yet.', 'sportspress' ) . '
'; - } - } - } endif;