From 86e48df4f7182a94aa89524877260c9b49b085b9 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 24 Jan 2005 10:13:28 +0000 Subject: [PATCH] Return comment even if blank. git-svn-id: http://svn.automattic.com/wordpress/trunk@2144 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 609653c39..8e984ecad 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); }