ZZ:Gravatar头像被墙及解决方案

尼玛……Gravatar也被墙了,太…无语了!

function get_ssl_avatar($avatar) {

$avatar = preg_replace(‘/.\/avatar\/(.)\?s=([\d]+)&.*/’,'<img src=”https://gravatar.proxy.ustclug.org/avatar/$1?s=$2″ class=”avatar avatar-$2″ height=”$2″ width=”$2″>’,$avatar);

return $avatar;

}

add_filter(‘get_avatar’, ‘get_ssl_avatar’);

通过Gravatar头像被墙及解决方案.

发表评论

40 queries in 1.659 seconds, using 11.67MB memory