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}"; } /**