From c2178198f4efab1179f14f8e612e99fefb4a6e10 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 12 Oct 2008 18:03:54 +0000 Subject: [PATCH] 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 --- wp-includes/pluggable.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index ba1fdf6340..79ac280f64 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -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';