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:
ryan 2008-02-08 07:09:01 +00:00
parent d3277c0efd
commit 4a662f1776
1 changed files with 1 additions and 1 deletions

View File

@ -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) ) {