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 = "";
} else {
- $avatar = "";
+ $out = esc_url( $default );
+ $avatar = "";
}
/**