Better subdomains for faster Gravatar loading. An update to [13385].
git-svn-id: http://svn.automattic.com/wordpress/trunk@13560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fc02586453
commit
73a11f4d4e
|
@ -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 )
|
||||||
|
|
Loading…
Reference in New Issue