From c1797020742c68c451d75db82f40ecb2f5e90a79 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 8 Feb 2008 07:09:01 +0000 Subject: [PATCH] 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 --- wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 7cac9e258e..1f72341582 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -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) ) {