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:
westi 2008-10-12 18:03:54 +00:00
parent 454a1d2b88
commit 869cd2ffa1
1 changed files with 3 additions and 3 deletions

View File

@ -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';