主页 > 编程资料 > WordPress >
发布时间:2015-09-26 作者:网络 阅读:243次

找到wp-includes/comment-template.php文件中


复制代码代码如下:
if ( empty( $url ) || 'http://' == $url )
$return = $author;
else
$return = "$author";
return apply_filters('get_comment_author_link', $return);
}

给$return值上加个target=’_blank’

复制代码代码如下:
if ( empty( $url ) || 'http://' == $url )
$return = $author;
else
$return = "$author";
return apply_filters('get_comment_author_link', $return);
}

关键字词: