三好菌昨天在处理评论时,发现无论是在WordPress后台还是前端文章页面,评论都只显示评论者,而不显示评论内容。在网上找到了如下解决方法,备忘一下:
编辑\wp-includes\comment-template.php。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function comment_text( $comment_ID = 0, $args = array() ) {
$comment = get_comment( $comment_ID );
$comment_text =...