Maintain the same output for get_avatar() as 3.6. see [25896]. For the 3.7 branch.

Built from https://develop.svn.wordpress.org/branches/3.7@25900


git-svn-id: http://core.svn.wordpress.org/branches/3.7@25812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-10-24 19:33:10 +00:00
parent a49c3f07c8
commit 4fe2c2db1e
1 changed files with 1 additions and 1 deletions

View File

@ -1700,7 +1700,7 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) {
if ( !empty( $rating ) )
$out .= "&r={$rating}";
$out = esc_url( $out );
$out = str_replace( '&', '&', esc_url( $out ) );
$avatar = "<img alt='{$safe_alt}' src='{$out}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />";
} else {
$avatar = "<img alt='{$safe_alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />";