Better subdomains for faster Gravatar loading. An update to [13385].

git-svn-id: https://develop.svn.wordpress.org/trunk@13560 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2010-03-02 21:59:15 +00:00
parent 1a5d7e2cae
commit c9dfdbc8c6
1 changed files with 2 additions and 2 deletions

View File

@ -1619,9 +1619,9 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) {
$host = 'https://secure.gravatar.com'; $host = 'https://secure.gravatar.com';
} else { } else {
if ( !empty($email) ) if ( !empty($email) )
$host = sprintf( "http://w%d.gravatar.com", ( hexdec( $email_hash{0} ) % 2 ) ); $host = sprintf( "http://%d.gravatar.com", ( hexdec( $email_hash{0} ) % 2 ) );
else else
$host = 'http://www.gravatar.com'; $host = 'http://0.gravatar.com';
} }
if ( 'mystery' == $default ) if ( 'mystery' == $default )