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
This commit is contained in:
ryan 2008-09-30 19:49:26 +00:00
parent ec4ce0db91
commit d0ae9b2196
1 changed files with 2 additions and 0 deletions

View File

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