Make WordPress Core

Changeset 7096


Ignore:
Timestamp:
02/28/2008 10:01:56 PM (17 years ago)
Author:
ryan
Message:

urlencode only when needed. Props spikeyslam. see #5775

File:
1 edited

Legend:

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

    r7091 r7096  
    12081208    if ( empty($default) )
    12091209        $default = "http://www.gravatar.com/avatar.php?gravatar_id=ad516503a11cd5ca435acc9bb6523536&size=$size"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com')
    1210     $default = urlencode( $default );
    12111210
    12121211    if ( !empty($email) ) {
     
    12141213        $out .= md5( strtolower( $email ) );
    12151214        $out .= "&size={$size}";
    1216         $out .= "&default={$default}";
     1215        $out .= '&default=' . urlencode( $default );
    12171216
    12181217        $rating = get_option('avatar_rating');
Note: See TracChangeset for help on using the changeset viewer.