From d0ae9b2196a457ad75c26a47a6cb06abcf13cfa9 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 30 Sep 2008 19:49:26 +0000 Subject: [PATCH] If comment type is empty set it to 'comment'. see #7635 git-svn-id: http://svn.automattic.com/wordpress/trunk@9039 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 7143461f6..aa773857c 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -470,6 +470,8 @@ function &separate_comments(&$comments) { $count = count($comments); for ( $i = 0; $i < $count; $i++ ) { $type = $comments[$i]->comment_type; + if ( empty($type) ) + $type = 'comment'; $comments_by_type[$type][] = &$comments[$i]; if ( 'trackback' == $type || 'pingback' == $type ) $comments_by_type['pings'][] = &$comments[$i];