蛋疼的gravatar(感谢GFW)

admin

前段时间陈公子说blog打开速度太慢,当然不出意外肯定是大墙的问题。但是呢,又懒得改。直到最近实在无法忍受了就改改吧。

修改wp-includes目录下的pluggable.php 第2155行为:

	if ( is_ssl() ) {
		$host = 'https://secure.gravatar.com';
	} else {
		$host = 'http://www.gravatar.com';
	}


原来的是:

if ( is_ssl() ) {
    $host = 'https://secure.gravatar.com';
} else {
    if ( !empty($email) )
        $host = sprintf( "http://%d.gravatar.com", ( hexdec( $email_hash{0} ) % 2 ) );
    else
        $host = 'http://0.gravatar.com';
}

文章评论效果

post

☆版权☆

* 网站名称:obaby@mars
* 网址:https://h4ck.org.cn/
* 个性:https://oba.by/
* 本文标题: 《蛋疼的gravatar(感谢GFW)》
* 本文链接:https://h4ck.org.cn/2014/12/5734
* 短链接:https://oba.by/?p=5734
* 转载文章请标明文章来源,原文标题以及原文链接。请遵从 《署名-非商业性使用-相同方式共享 2.5 中国大陆 (CC BY-NC-SA 2.5 CN) 》许可协议。


猜你喜欢:

3 comments

    1. 公主 Queen 
      Google Chrome 39 Google Chrome 39 Windows 8 Windows 8 cn山东省青岛市 联通

      奈何有点功夫都和这个东西较劲了,想做点事情首先要过大墙这关。等过了墙耐心也就磨得差不多了。

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注