If comment type is empty set it to 'comment'. see #7635

git-svn-id: https://develop.svn.wordpress.org/trunk@9039 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-09-30 19:49:26 +00:00
parent 1661e06111
commit 9ba606f9ff
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];