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