--- ../../tags/1.5.4/get-recent-comments.php 2007-03-26 01:00:34.000000000 +0200 +++ get-recent-comments.php 2007-03-26 09:42:32.000000000 +0200 @@ -1,7 +1,7 @@ comment_content; + if (function_exists("polyglot_init")) { + // This looks like the wrong filter, but the_content deletes smilies when called from here + $comment_excerpt = apply_filters('single_post_title',$comment->comment_content); + } else { + $comment_excerpt = $comment->comment_content; + } // comment_author, $comment_type = "Comment"; if ($comment->comment_type == 'pingback') @@ -959,9 +964,17 @@ $post_link = get_permalink($comment->comment_post_ID); $comment_link = $post_link . "#comment-$comment->comment_ID"; - $comment_date = mysql2date(get_settings('date_format'),$comment->comment_date); - //$comment_time = substr($comment->comment_date,11,5); // 2005-03-09 22:23:53 - $comment_time = mysql2date(get_settings('time_format'),$comment->comment_date); // Thanks to Keith + if (function_exists("polyglot_init")) { + $comment_date = apply_filters('the_date',$comment->comment_date); + } else { + $comment_date = mysql2date(get_settings('date_format'),$comment->comment_date); + } + if (function_exists("polyglot_init")) { + $comment_time = apply_filters('the_time',$comment->comment_date); + } else { + //$comment_time = substr($comment->comment_date,11,5); // 2005-03-09 22:23:53 + $comment_time = mysql2date(get_settings('time_format'),$comment->comment_date); // Thanks to Keith + } if ($has_gravatar && $comment_author != '') { if ($md5_cache && array_key_exists($comment->comment_author,$md5_cache)) { @@ -983,9 +996,16 @@ #$post = get_postdata($comment->comment_post_ID); // *** insert cache for post data here $post = $wpdb->get_row("SELECT * from $wpdb->posts WHERE ID = $comment->comment_post_ID"); - $post_date = mysql2date(get_settings('date_format'),$post->post_date); + if (function_exists("polyglot_init")) { + $post_date = apply_filters('the_date',$post->post_date); + } else { + $post_date = mysql2date(get_settings('date_format'),$post->post_date); + } // $post_title = trim(htmlspecialchars(stripslashes($post->post_title))); $post_title = strip_tags(wptexturize($post->post_title)); + if (function_exists("polyglot_init")) { + $post_title = apply_filters('single_post_title',$post_title); + } $post_counter = $post->comment_count; $author_url = $comment->comment_author_url; $author_url_href = 'href="' . $author_url . '"';