在主题中的functions.php文件末尾加上以下代码即可(外观>编辑>functions.php)
1 //官方Gravatar头像调用ssl头像链接 2 function get_ssl_avatar($avatar) { 3 $avatar = preg_replace('/.*/avatar/(.*)?s=([d]+)&.*/','<img src="https://secure.gravatar.com/avatar/$1?s=$2" class="avatar avatar-$2" height="$2" width="$2">',$avatar); 4 return $avatar; 5 }