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];