Loading... Gravatar头像服务部分被和谐了,给使用WordPress的朋友带来了不便,这是因为GRAVATAR的头像服务器<span class="external-link"><a class="no-external-link" href="http://0.gravatar.com" target="_blank"><i data-feather="external-link"></i>http://0.gravatar.com</a></span>被墙了,都说在我们伟大的天朝,你要懂得FUCK GFW 才能生存,看得确实啊。 不过Gravatar头像读取困难只出现在 WordPress 3.0-3.1中,而之前的版本没有发现问题,原因在于 WordPress 3.0 通过读取缓存服务器的方式,减少了对www.gravatar.com 的直接请求:以往直接读取官方服务器,现在都被分流到 0.gravatar.com, 1.gravatar.com 等缓存服务器上了,遇上CDN故障,所以就出现了无法读取头像的问题。 解决方法 在博客安装目录的wp-includes下找到pluggable.php,然后在1669和1671两行(可能有所偏差)将<span class="external-link"><a class="no-external-link" href="http://%d.gravatar.com" target="_blank"><i data-feather="external-link"></i>http://%d.gravatar.com</a></span> 和 <span class="external-link"><a class="no-external-link" href="http://0.gravatar.com" target="_blank"><i data-feather="external-link"></i>http://0.gravatar.com</a></span> 都改成 <span class="external-link"><a class="no-external-link" href="http://www.gravatar.com" target="_blank"><i data-feather="external-link"></i>http://www.gravatar.com</a></span>,保存上传即可。如图所示: <a href="https://www.crazycen.com/usr/uploads/2011/03/TT.png"><img style="display: inline; border: 0px;" title="TT" src="https://www.crazycen.com/usr/uploads/2011/03/TT_thumb.png" border="0" alt="TT" width="642" height="179" style=""></a> Last modification:October 6, 2023 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 如果觉得我的文章对你有用,请随意赞赏