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

git-svn-id: http://svn.automattic.com/wordpress/trunk@9084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-10-05 04:48:17 +00:00
parent dc564f4792
commit 3f5753f4b1
1 changed files with 1 additions and 1 deletions

View File

@ -1476,7 +1476,7 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) {
if ( $user )
$email = $user->user_email;
} elseif ( is_object($id_or_email) ) {
if ( isset($id_or_email->comment_type) && '' != $id_or_email->comment_type )
if ( isset($id_or_email->comment_type) && '' != $id_or_email->comment_type && 'comment' != $id_or_email->comment_type )
return false; // No avatar for pingbacks or trackbacks
if ( !empty($id_or_email->user_id) ) {