diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index d75908261e..95046d0437 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1700,6 +1700,7 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) { if ( !empty( $rating ) ) $out .= "&r={$rating}"; + $out = esc_url( $out ); $avatar = "{$safe_alt}"; } else { $avatar = "{$safe_alt}";