mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Use square brackets instead of braces for string access. props hakre, fixes #13900.
git-svn-id: https://develop.svn.wordpress.org/trunk@16340 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1658,7 +1658,7 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) {
|
||||
$host = 'https://secure.gravatar.com';
|
||||
} else {
|
||||
if ( !empty($email) )
|
||||
$host = sprintf( "http://%d.gravatar.com", ( hexdec( $email_hash{0} ) % 2 ) );
|
||||
$host = sprintf( "http://%d.gravatar.com", ( hexdec( $email_hash[0] ) % 2 ) );
|
||||
else
|
||||
$host = 'http://0.gravatar.com';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user