Precompute the hash of the unknown avatar user to save an md5 call. Props Viper007Bond. see #5775
git-svn-id: http://svn.automattic.com/wordpress/trunk@6756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d3277c0efd
commit
4a662f1776
|
@ -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