Skip to:
Content

bbPress.org

Changeset 1391


Ignore:
Timestamp:
04/01/2008 01:31:34 AM (17 years ago)
Author:
sambauers
Message:

More bb_get_avatar() optimisations inherited from WordPress

File:
1 edited

Legend:

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

    r1389 r1391  
    451451        $default = 'http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=' . $size;
    452452        // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com')
    453     $default = urlencode( $default );
    454453
    455454    if ( !empty($email) ) {
    456455        $src = 'http://www.gravatar.com/avatar/';
    457         $src .= md5( $email );
     456        $src .= md5( strtolower( $email ) );
    458457        $src .= '?s=' . $size;
    459         $src .= '&d=' . $default;
     458        $src .= '&d=' . urlencode( $default );
    460459
    461460        $rating = bb_get_option('avatars_rating');
Note: See TracChangeset for help on using the changeset viewer.