From 4a662f1776b0cdcc77040844bf0393b73debeb32 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@6756 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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) ) {