After [34160], also upgrade objects passed to get_avatar()
.
See #32619. git-svn-id: https://develop.svn.wordpress.org/trunk@34244 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
45c6094dce
commit
2d11d6cd90
@ -2274,6 +2274,10 @@ function get_avatar( $id_or_email, $size = 96, $default = '', $alt = '', $args =
|
||||
$args['width'] = $args['size'];
|
||||
}
|
||||
|
||||
if ( is_object( $id_or_email ) && isset( $id_or_email->comment_ID ) ) {
|
||||
$id_or_email = get_comment( $id_or_email );
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter whether to retrieve the avatar URL early.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user