Change Gravatar server to official

pull/121/head
Dumbledore 2019-10-28 14:07:08 +00:00
parent d10a957567
commit f4742c7e62
1 changed files with 1 additions and 1 deletions

View File

@ -565,7 +565,7 @@ 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, 'gravatar.shino.cc', $url );
return str_replace( $gravatar_url, 'cn.gravatar.com', $url );
}
add_filter( 'get_avatar_url', 'gravatar_cn', 4 );