mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
dc564f4792
commit
3f5753f4b1
@ -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) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user