--- simple_recent_comments.php.orig Sun Jun 29 13:57:40 2008
+++ simple_recent_comments.php Thu Mar 12 22:00:39 2009
@@ -68,8 +68,7 @@ Foundation, Inc., 59 Temple Place, Suite
function src_simple_recent_comments($src_count=7, $src_length=60, $pre_HTML='
Recent Comments
', $post_HTML='') {
global $wpdb;
- $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,
- SUBSTRING(comment_content,1,$src_length) AS com_excerpt
+ $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, comment_content
FROM $wpdb->comments
LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID)
WHERE comment_approved = '1' AND comment_type = '' AND post_password = ''
@@ -80,7 +79,7 @@ function src_simple_recent_comments($src
$output = $pre_HTML;
$output .= "\n";
$output .= $post_HTML;