Maintain the same output for get_avatar() as 3.6. see [25895].
git-svn-id: https://develop.svn.wordpress.org/trunk@25899 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7508e7c03b
commit
ceaf87ff2d
@ -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}' />";
|
||||
|
Loading…
Reference in New Issue
Block a user