Use newer Gravatar URL style. props link2caro. fixes #6229
git-svn-id: http://svn.automattic.com/wordpress/trunk@7306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4d4127bf42
commit
df240cb60c
|
@ -1209,17 +1209,17 @@ function get_avatar( $id_or_email, $size = '64', $default = '' ) {
|
|||
}
|
||||
|
||||
if ( empty($default) )
|
||||
$default = "http://www.gravatar.com/avatar.php?gravatar_id=ad516503a11cd5ca435acc9bb6523536&size=$size"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com')
|
||||
$default = "http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=$size"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com')
|
||||
|
||||
if ( !empty($email) ) {
|
||||
$out = 'http://www.gravatar.com/avatar.php?gravatar_id=';
|
||||
$out = 'http://www.gravatar.com/avatar/';
|
||||
$out .= md5( strtolower( $email ) );
|
||||
$out .= "&size={$size}";
|
||||
$out .= '&default=' . urlencode( $default );
|
||||
$out .= '?s='.$size;
|
||||
$out .= '&d=' . urlencode( $default );
|
||||
|
||||
$rating = get_option('avatar_rating');
|
||||
if ( !empty( $rating ) )
|
||||
$out .= "&rating={$rating}";
|
||||
$out .= "&r={$rating}";
|
||||
|
||||
$avatar = "<img alt='' src='{$out}' class='avatar avatar-{$size}' height='{$size}' width='{$size}' />";
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue