Ticket #22354: miqro-blank-gravatars.diff
File miqro-blank-gravatars.diff, 1.3 KB (added by , 12 years ago) |
---|
-
wp-includes/pluggable.php
1637 1637 $host = 'http://0.gravatar.com'; 1638 1638 } 1639 1639 1640 if ( 'mystery' == $default ) 1640 if ( 'mystery' == $default ) { 1641 1641 $default = "$host/avatar/ad516503a11cd5ca435acc9bb6523536?s={$size}"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com') 1642 elseif ( 'blank' == $default ) 1643 $default = includes_url('images/blank.gif'); 1644 elseif ( !empty($email) && 'gravatar_default' == $default ) 1642 } elseif ( 'blank' == $default ) { 1643 if ( empty($email) ) { 1644 $default = includes_url('images/blank.gif'); 1645 } 1646 // else use '&d=blank' in the URL. 1647 } elseif ( !empty($email) && 'gravatar_default' == $default ) { 1645 1648 $default = ''; 1646 elseif ( 'gravatar_default' == $default )1649 } elseif ( 'gravatar_default' == $default ) { 1647 1650 $default = "$host/avatar/?s={$size}"; 1648 elseif ( empty($email) )1651 } elseif ( empty($email) ) { 1649 1652 $default = "$host/avatar/?d=$default&s={$size}"; 1650 elseif ( strpos($default, 'http://') === 0 )1653 } elseif ( strpos($default, 'http://') === 0 ) { 1651 1654 $default = add_query_arg( 's', $size, $default ); 1655 } 1652 1656 1653 1657 if ( !empty($email) ) { 1654 1658 $out = "$host/avatar/";