Skip to content

Commit 6018669

Browse files
committed
Don't show avatar for pingbacks or trackbacks
git-svn-id: https://develop.svn.wordpress.org/trunk@9075 602fd350-edb4-49c9-b593-d223f7449a82
1 parent fb452b2 commit 6018669

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

wp-includes/pluggable.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,6 +1471,9 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = 'Avatar'
14711471
if ( $user )
14721472
$email = $user->user_email;
14731473
} elseif ( is_object($id_or_email) ) {
1474+
if ( isset($id_or_email->comment_type) && '' != $id_or_email->comment_type )
1475+
return false; // No avatar for pingbacks or trackbacks
1476+
14741477
if ( !empty($id_or_email->user_id) ) {
14751478
$id = (int) $id_or_email->user_id;
14761479
$user = get_userdata($id);

0 commit comments

Comments
 (0)