From 869cd2ffa1dab28b751f22e497e8710d45d5ea43 Mon Sep 17 00:00:00 2001 From: westi Date: Sun, 12 Oct 2008 18:03:54 +0000 Subject: [PATCH] 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 --- 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';