首先找到 wp-includes/pluggable.php 文件,打开编辑
查找如下代码:
if ( is_ssl() ) { $host = ‘https://secure.gravatar.com’; } else { if ( is_ssl() ) { $host = 'http://www.gravatar.com'; } else { if ( !empty($email) ) $host = sprintf( "http://%d.gravatar.com", ( hexdec( $email_hash[0] ) % 2 ) ); else $host = 'http://0.gravatar.com';
把这个代码替换成下面的代码:
if ( is_ssl() ) { $host = 'https://secure.gravatar.com'; } else { if ( !empty($email) ) $host ='https://secure.gravatar.com'; else $host = 'https://secure.gravatar.com';
标签:WordPress
发表评论