Default to an empty alt attribute on Avatars. Fixes #7536.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
454a1d2b88
commit
869cd2ffa1
|
@ -1462,8 +1462,8 @@ 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) )
|
||||||
|
|
Loading…
Reference in New Issue