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:
Scott Taylor 2015-09-16 17:33:34 +00:00
parent 45c6094dce
commit 2d11d6cd90
1 changed files with 4 additions and 0 deletions

View File

@ -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.
*