wordpress头像不显示解决方法
使用 Gravatar 的 HTTPS(适用于任何主题):
在主题目录中,找到并打开 functions.php 文件,把以下代码复制放到该文件中:
| 1 2 3 4 5
| `function mywp_get_https_avatar($avatar) {
$avatar = preg_replace(‘/./avatar/(.)?.avatar-([\d]+)./‘,’‘,$avatar);
return $avatar;
}
add_filter(‘get_avatar’, ‘mywp_get_https_avatar’);` |
| ——————- | ———————————————————————————————————————————————————————————————————————————————————————————————————— |
参考资料 http://www.wpyou.com/wordpress-solution-gravatar-error.html