wordpress2.8.5版本去掉评论签名链接的方法

今天换了个主题,更新了一下版本,发现评论签名的链接又出来了,突然想起来是因为更新版本以后wp-include文件夹的内容更新了,可是按照以前那篇关于wordpress去掉签名链接的文章去找,又找不到修改的地方了,没办法自己又打开文件找了一下。

wordpress2.8.5的签名链接文件修改没变,还是wp-include文件夹下的comment-template.php文件,大概在148行附近的位置有这两句

$return = “<a href=’$url’ rel=’external nofollow’ class=’url’>$author</a>”;
return apply_filters(‘get_comment_author_link’, $return);

修改成

$return = “$author”;
return apply_filters(‘get_comment_author’, $return);

这样就可以了,效果见现在我的网站就知道了。

Popularity: 2%

关注最多的文章

4个评论 to “wordpress2.8.5版本去掉评论签名链接的方法”

  • 连接测试 说道:

    - – 连接测试失败

  • 哎,我们的网站数据全部被黑客破坏了,真是郁闷,过来看看博主,学点东西。

  • 留下评论:

    昵称(必须):
    邮箱地址 (不会被公开) (必须):
    站点
    评论 (必须)
    XHTML: 您可以使用这些标记: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>