Gravatar emails should be trimmed before being lowered and hashed. props evansolomon. fixes #19614.
git-svn-id: https://develop.svn.wordpress.org/trunk@19614 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c671754b4f
commit
483f3fd886
@ -1629,7 +1629,7 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) {
|
||||
}
|
||||
|
||||
if ( !empty($email) )
|
||||
$email_hash = md5( strtolower( $email ) );
|
||||
$email_hash = md5( strtolower( trim( $email ) ) );
|
||||
|
||||
if ( is_ssl() ) {
|
||||
$host = 'https://secure.gravatar.com';
|
||||
|
Loading…
Reference in New Issue
Block a user