WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#6229 closed defect (bug) (fixed)

UPDATE: get_avatar()

Reported by: link2caro Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.5
Component: General Keywords:
Focuses: Cc:

Description

NEW API

http://www.gravatar.com/avatar/767fc9c115a1b989744c755db47feb60.jpg?s=128&r=g

Changes:

if ( empty($default) )

$default = "http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536.jpg?s=$size"; ad516503a11cd5ca435acc9bb6523536 == md5('unknown@…')

if ( !empty($email) ) {

$out = 'http://www.gravatar.com/avatar/';
$out .= md5( strtolower( $email ) );
$out .= '.jpg?s='.$size;
$out .= '&d=' . urlencode( $default );

$rating = get_option('avatar_rating');
if ( !empty( $rating ) )

$out .= "&r={$rating}";

Attachments (1)

pluggable.php (43.5 KB) - added by link2caro 7 years ago.

Download all attachments as: .zip

Change History (2)

@link2caro7 years ago

comment:1 @markjaquith7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [7306]) Use newer Gravatar URL style. props link2caro. fixes #6229

Note: See TracTickets for help on using tickets.