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:
parent
abdc564e7a
commit
528fe647e4
|
@ -1522,7 +1522,7 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) {
|
||||||
$default = "http://www.gravatar.com/avatar/s={$size}";
|
$default = "http://www.gravatar.com/avatar/s={$size}";
|
||||||
elseif ( empty($email) )
|
elseif ( empty($email) )
|
||||||
$default = "http://www.gravatar.com/avatar/?d=$default&s={$size}";
|
$default = "http://www.gravatar.com/avatar/?d=$default&s={$size}";
|
||||||
else
|
elseif ( strpos($default, 'http://') === 0 )
|
||||||
$default = add_query_arg( 's', $size, $default );
|
$default = add_query_arg( 's', $size, $default );
|
||||||
|
|
||||||
if ( !empty($email) ) {
|
if ( !empty($email) ) {
|
||||||
|
|
Loading…
Reference in New Issue