From 9c3fd206869a1e0849852a91aaf4c38112865ee4 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 5 Oct 2008 04:48:17 +0000 Subject: [PATCH] get_comment_type() sets comment_type to 'comment'. Allow for that in get_avatar(). git-svn-id: https://develop.svn.wordpress.org/trunk@9084 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index ea9d3f93a4..ba1fdf6340 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -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) ) {