WordPress.org

Make WordPress Core

Changeset 9039


Ignore:
Timestamp:
09/30/2008 07:49:26 PM (10 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r9015 r9039  
    471471    for ( $i = 0; $i < $count; $i++ ) {
    472472        $type = $comments[$i]->comment_type;
     473        if ( empty($type) )
     474            $type = 'comment';
    473475        $comments_by_type[$type][] = &$comments[$i];
    474476        if ( 'trackback' == $type || 'pingback' == $type )
Note: See TracChangeset for help on using the changeset viewer.