WordPress.org

Make WordPress Core

Changeset 22566


Ignore:
Timestamp:
11/14/12 05:29:56 (17 months ago)
Author:
nacin
Message:

Pass 'blank' to Gravatar rather than sending blank.gif for Gravatar to proxy. props miqrogroove, fixes #22354.

File:
1 edited

Legend:

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

    r21996 r22566  
    16411641        $default = "$host/avatar/ad516503a11cd5ca435acc9bb6523536?s={$size}"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com') 
    16421642    elseif ( 'blank' == $default ) 
    1643         $default = includes_url('images/blank.gif'); 
     1643        $default = $email ? 'blank' : includes_url( 'images/blank.gif' ); 
    16441644    elseif ( !empty($email) && 'gravatar_default' == $default ) 
    16451645        $default = ''; 
Note: See TracChangeset for help on using the changeset viewer.