From b722da15b18d7fe7de4c0c8087cec158ea4ddd81 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sun, 2 Mar 2014 15:05:09 +1100 Subject: [PATCH] Remove unused dashboard widget --- admin/tools/dashboard.php | 38 -------------------------------------- 1 file changed, 38 deletions(-) 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 ''; - } else { - echo '

' . __( 'There are no product reviews yet.', 'sportspress' ) . '

'; - } - } - } endif;