Don't show avatar for pingbacks or trackbacks
git-svn-id: http://svn.automattic.com/wordpress/trunk@9075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b50f25ae11
commit
f286979c28
|
@ -1471,6 +1471,9 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = 'Avatar'
|
|||
if ( $user )
|
||||
$email = $user->user_email;
|
||||
} elseif ( is_object($id_or_email) ) {
|
||||
if ( isset($id_or_email->comment_type) && '' != $id_or_email->comment_type )
|
||||
return false; // No avatar for pingbacks or trackbacks
|
||||
|
||||
if ( !empty($id_or_email->user_id) ) {
|
||||
$id = (int) $id_or_email->user_id;
|
||||
$user = get_userdata($id);
|
||||
|
|
Loading…
Reference in New Issue