mirror of
https://github.com/mashirozx/sakura.git
synced 2024-12-12 09:54:35 +08:00
Update functions.php
This commit is contained in:
parent
376efe91a2
commit
be6a6e76c3
@ -609,7 +609,9 @@ function get_link_items()
|
||||
function gravatar_cn($url)
|
||||
{
|
||||
$gravatar_url = array('0.gravatar.com', '1.gravatar.com', '2.gravatar.com', 'secure.gravatar.com');
|
||||
return str_replace($gravatar_url, 'cn.gravatar.com', $url);
|
||||
//return str_replace($gravatar_url, 'cn.gravatar.com', $url);
|
||||
//官方服务器近期大陆访问 429,建议使用镜像
|
||||
return str_replace( $gravatar_url, 'gravatar.2heng.xin', $url );
|
||||
}
|
||||
add_filter('get_avatar_url', 'gravatar_cn', 4);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user