Default to an empty alt attribute on Avatars. Fixes #7536.
git-svn-id: https://develop.svn.wordpress.org/trunk@9127 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
117eaeab2f
commit
c2178198f4
|
@ -1462,9 +1462,9 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ( false === $alt)
|
if ( false === $alt)
|
||||||
$alt = __( 'Avatar' );
|
$safe_alt = '';
|
||||||
|
else
|
||||||
$safe_alt = attribute_escape( $alt );
|
$safe_alt = attribute_escape( $alt );
|
||||||
|
|
||||||
if ( !is_numeric($size) )
|
if ( !is_numeric($size) )
|
||||||
$size = '96';
|
$size = '96';
|
||||||
|
|
Loading…
Reference in New Issue