WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/08/2008 07:09:01 AM (14 years ago)
Author:
ryan
Message:

Precompute the hash of the unknown avatar user to save an md5 call. Props Viper007Bond. see #5775

File:
1 edited

Legend:

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

    r6749 r6756  
    11911191
    11921192    if ( empty($default) )
    1193         $default = 'http://www.gravatar.com/avatar.php?gravatar_id=' . md5('unknown@gravatar.com') . "&size=$size";
     1193        $default = "http://www.gravatar.com/avatar.php?gravatar_id=ad516503a11cd5ca435acc9bb6523536&size=$size"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com')
    11941194    $default = urlencode( $default );
    11951195
Note: See TracChangeset for help on using the changeset viewer.