Changeset 9084

Show
Ignore:
Timestamp:
10/05/08 04:48:17 (2 months ago)
Author:
ryan
Message:

get_comment_type() sets comment_type to 'comment'. Allow for that in get_avatar().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/pluggable.php

    r9076 r9084  
    14771477            $email = $user->user_email; 
    14781478    } elseif ( is_object($id_or_email) ) { 
    1479         if ( isset($id_or_email->comment_type) && '' != $id_or_email->comment_type
     1479        if ( isset($id_or_email->comment_type) && '' != $id_or_email->comment_type && 'comment' != $id_or_email->comment_type
    14801480            return false; // No avatar for pingbacks or trackbacks 
    14811481