Fix default Gravatar URLs, props DD32, fixes #8232

git-svn-id: https://develop.svn.wordpress.org/trunk@9728 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-11-15 23:30:33 +00:00
parent abdc564e7a
commit 528fe647e4
1 changed files with 1 additions and 1 deletions

View File

@ -1522,7 +1522,7 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) {
$default = "http://www.gravatar.com/avatar/s={$size}";
elseif ( empty($email) )
$default = "http://www.gravatar.com/avatar/?d=$default&s={$size}";
else
elseif ( strpos($default, 'http://') === 0 )
$default = add_query_arg( 's', $size, $default );
if ( !empty($email) ) {