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:
Peter Westwood 2008-10-12 18:03:54 +00:00
parent 117eaeab2f
commit c2178198f4
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;
if ( false === $alt)
$alt = __( 'Avatar' );
$safe_alt = attribute_escape( $alt );
$safe_alt = '';
else
$safe_alt = attribute_escape( $alt );
if ( !is_numeric($size) )
$size = '96';