Make WordPress Core

Changeset 6749


Ignore:
Timestamp:
02/07/2008 06:58:38 AM (17 years ago)
Author:
ryan
Message:

Gonna serve default avatars from gravatar. see #5775

Location:
trunk/wp-includes
Files:
1 deleted
1 edited

Legend:

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

    r6748 r6749  
    11901190    }
    11911191
    1192     $default_sizes = array(16, 32, 48, 96, 128);
    1193     if ( empty($default) ) {
    1194         if ( in_array($size, $default_sizes) )
    1195             $default = trailingslashit(get_bloginfo('wpurl')) . "wp-includes/images/avatar/unknown-$size.jpg";
    1196         else
    1197             $default = trailingslashit(get_bloginfo('wpurl')) . "wp-includes/images/avatar/unknown-96.jpg";
    1198     }
     1192    if ( empty($default) )
     1193        $default = 'http://www.gravatar.com/avatar.php?gravatar_id=' . md5('unknown@gravatar.com') . "&size=$size";
     1194    $default = urlencode( $default );
    11991195
    12001196    if ( !empty($email) ) {
    1201         $default = urlencode( $default );
    1202 
    12031197        $out = 'http://www.gravatar.com/avatar.php?gravatar_id=';
    12041198        $out .= md5( $email );
Note: See TracChangeset for help on using the changeset viewer.