Typecho 切换Gravatar头像到境内线路——解决Gravatar头像无法显示问题

编辑var/Typecho/Common.php,找到gravatarUrl函数,函数签名如下
public static function gravatarUrl($mail, $size, $rating, $default, $isSecure = false)

 $url = $isSecure ?  此处省略

这行修改为

$url = $isSecure ? 'https://cn.gravatar.com' : 'http://cn.gravatar.com';
Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.

请我喝杯咖啡吧~

支付宝
微信