在很多 WordPress 主题评论框下方,都会有这样的文字:

您可以使用这些 HTML 标签和属性: <a href=”” title=””> <abbr title=””> <acronym title=””> <b> <blockquote cite=””> <cite> <code> <del datetime=””> <em> <i> <q cite=””> <strike> <strong>

尽管这些文字具有提示作用,但难免有些冗余,不妨将其去除。

首先请查看评论模版(comments.php)中有没有相关代码,删除以下代码

<p class=”form-allowed-tags”>’.sprintf(__(‘You may use these <abbr title=”HyperText Markup Language”>HTML</abbr> tags and attributes: %s’, ‘suffusion’), ‘<code>’.allowed_tags().’</code>’).’</p>

如果在评论模版(comments.php)中找不到相应代码,不妨尝试修改 wp-includes/comment-template.php,删除或者注释掉以下代码

<?php echo $args['comment_notes_after']; ? >

或者把它把它注释掉即可,即改为下面的形式即可:

<!--?php echo $args['comment_notes_after']; ? -->