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
This commit is contained in:
parent
603dbcdf4f
commit
9c3fd20686
@ -1476,7 +1476,7 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) {
|
|||||||
if ( $user )
|
if ( $user )
|
||||||
$email = $user->user_email;
|
$email = $user->user_email;
|
||||||
} elseif ( is_object($id_or_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
|
return false; // No avatar for pingbacks or trackbacks
|
||||||
|
|
||||||
if ( !empty($id_or_email->user_id) ) {
|
if ( !empty($id_or_email->user_id) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user