From 469170c44c3bc87f1ad5c8eb7a2dcdc4611c8456 Mon Sep 17 00:00:00 2001 From: azaozz Date: Sat, 15 Nov 2008 23:30:33 +0000 Subject: [PATCH] Fix default Gravatar URLs, props DD32, fixes #8232 git-svn-id: http://svn.automattic.com/wordpress/trunk@9728 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 0fba651163..84ebc9c77b 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -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) ) {