在主題中的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 }