WordPress.org

Make WordPress Core

Changeset 7306


Ignore:
Timestamp:
03/15/08 02:23:27 (6 years ago)
Author:
markjaquith
Message:

Use newer Gravatar URL style. props link2caro. fixes #6229

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r7158 r7306  
    12101210 
    12111211    if ( empty($default) ) 
    1212         $default = "http://www.gravatar.com/avatar.php?gravatar_id=ad516503a11cd5ca435acc9bb6523536&size=$size"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com') 
     1212        $default = "http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=$size"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com') 
    12131213 
    12141214    if ( !empty($email) ) { 
    1215         $out = 'http://www.gravatar.com/avatar.php?gravatar_id='; 
     1215        $out = 'http://www.gravatar.com/avatar/'; 
    12161216        $out .= md5( strtolower( $email ) ); 
    1217         $out .= "&size={$size}"; 
    1218         $out .= '&default=' . urlencode( $default ); 
     1217        $out .= '?s='.$size; 
     1218        $out .= '&d=' . urlencode( $default ); 
    12191219 
    12201220        $rating = get_option('avatar_rating'); 
    12211221        if ( !empty( $rating ) ) 
    1222             $out .= "&rating={$rating}"; 
     1222            $out .= "&r={$rating}"; 
    12231223 
    12241224        $avatar = "<img alt='' src='{$out}' class='avatar avatar-{$size}' height='{$size}' width='{$size}' />"; 
Note: See TracChangeset for help on using the changeset viewer.