After [34160], also upgrade objects passed to `get_avatar()`.

See #32619.


Built from https://develop.svn.wordpress.org/trunk@34244


git-svn-id: http://core.svn.wordpress.org/trunk@34208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-09-16 17:34:24 +00:00
parent bf36b458bb
commit 956f076095
2 changed files with 5 additions and 1 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.
*

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34243';
$wp_version = '4.4-alpha-34244';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.