From ee4ce8688d8b71ddbc6472050f71f8bb961692da Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 6 Aug 2014 07:50:18 +0000 Subject: [PATCH] Escape late in get_avatar(). Built from https://develop.svn.wordpress.org/trunk@29397 git-svn-id: http://core.svn.wordpress.org/trunk@29175 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 5fed477bce..52a16788fc 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -2173,7 +2173,8 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) { $out = str_replace( '&', '&', esc_url( $out ) ); $avatar = "{$safe_alt}"; } else { - $avatar = "{$safe_alt}"; + $out = esc_url( $default ); + $avatar = "{$safe_alt}"; } /**