In reply to XiaoAn.

@XiaoAn
gravatar在中国被墙了..一般是各种找CDN.比如增加一个插件,内容如下:

[code lang="php"]
/**
*Plugin Name: QGravatar
*Version: 0.1
*Plugin URI: https://blog.argcv.com
*Description: v2ex gravatar
*Author: Yu Jing
*Author URI: https://blog.argcv.com/about
*/

function avatar_with_cdn($avatar) {
$avatar = str_replace(
array("www.gravatar.com/avatar",
"0.gravatar.com/avatar",
"1.gravatar.com/avatar",
"2.gravatar.com/avatar",
"secure.gravatar.com/avatar"),
"cdn.v2ex.com/gravatar",
$avatar);
return $avatar;
}
add_filter( 'get_avatar', 'avatar_with_cdn');

[/code]
或者直接在你function中添加如上内容.

这个使用的是v2ex的