From f36ec751bec662b34eaf4723f9f1a69f6408fc4b Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 28 Feb 2008 16:34:59 +0000 Subject: [PATCH] Ensure email address is lower case in get_avatar(). Fixes #6028 props josephscott. git-svn-id: https://develop.svn.wordpress.org/trunk@7087 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 02a31d52f1..fc5c35d759 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1211,7 +1211,7 @@ function get_avatar( $id_or_email, $size = '96', $default = '' ) { if ( !empty($email) ) { $out = 'http://www.gravatar.com/avatar.php?gravatar_id='; - $out .= md5( $email ); + $out .= md5( strtolower( $email ) ); $out .= "&size={$size}"; $out .= "&default={$default}";