mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Precompute the hash of the unknown avatar user to save an md5 call. Props Viper007Bond. see #5775
git-svn-id: https://develop.svn.wordpress.org/trunk@6756 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e733248e77
commit
c179702074
@ -1190,7 +1190,7 @@ function get_avatar( $id_or_email, $size = '96', $default = '' ) {
|
||||
}
|
||||
|
||||
if ( empty($default) )
|
||||
$default = 'http://www.gravatar.com/avatar.php?gravatar_id=' . md5('unknown@gravatar.com') . "&size=$size";
|
||||
$default = "http://www.gravatar.com/avatar.php?gravatar_id=ad516503a11cd5ca435acc9bb6523536&size=$size"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com')
|
||||
$default = urlencode( $default );
|
||||
|
||||
if ( !empty($email) ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user