Ensure email address is lower case in get_avatar(). Fixes #6028 props josephscott.

git-svn-id: http://svn.automattic.com/wordpress/trunk@7087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-02-28 16:34:59 +00:00
parent f529aef82d
commit 717b7316bf

View File

@ -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}";