在任意主题下的functions.php里添加如下代码:
// HackGravatar
function wpyou_get_ssl_avatar($avatar) {
$avatar = preg_replace('/.*\/avatar\/(.*)\?s=([\d]+)&.*/','',$avatar);
return $avatar;
}
add_filter('get_avatar', 'wpyou_get_ssl_avatar');
发布于 2017-06-04 3191 次阅读
在任意主题下的functions.php里添加如下代码:
// HackGravatar
function wpyou_get_ssl_avatar($avatar) {
$avatar = preg_replace('/.*\/avatar\/(.*)\?s=([\d]+)&.*/','',$avatar);
return $avatar;
}
add_filter('get_avatar', 'wpyou_get_ssl_avatar');
Comments NOTHING