WordPress.org

Make WordPress Core

Ticket #22354: 22354.simple.patch

File 22354.simple.patch, 604 bytes (added by Viper007Bond, 7 years ago)

Simple fix

  • wp-includes/pluggable.php

     
    16391639
    16401640        if ( 'mystery' == $default )
    16411641                $default = "$host/avatar/ad516503a11cd5ca435acc9bb6523536?s={$size}"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com')
    1642         elseif ( 'blank' == $default )
     1642        elseif ( empty($email) && 'blank' == $default )
    16431643                $default = includes_url('images/blank.gif');
    16441644        elseif ( !empty($email) && 'gravatar_default' == $default )
    16451645                $default = '';