From fe2075356a56997e7c96dfd25b6dfe1ed649a04e Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 24 Jan 2005 10:13:28 +0000 Subject: [PATCH] Return comment even if blank. git-svn-id: https://develop.svn.wordpress.org/trunk@2144 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment-functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index 609653c39a..8e984ecad4 100644 --- a/wp-includes/comment-functions.php +++ b/wp-includes/comment-functions.php @@ -168,6 +168,10 @@ function comment_author_link() { function get_comment_type() { global $comment; + + if ( '' == $comment->comment_type ) + $comment->comment_type = 'comment'; + return apply_filters('get_comment_type', $comment->comment_type); }