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:
parent
1661e06111
commit
9ba606f9ff
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue