RSS

关于 comments 不能正确显示的问题

February 20

有读者留言反应 comments 不能正确显示。经检查,前一段时间 WordPress 升级之后导致 comment_type 有所改变,在旧的 Theme 里加入一个新的 case 貌似可以解决。

function choco_print_comment( $comment, $args, $depth ) {
    $GLOBALS['comment'] = $comment;
    switch ( $comment->comment_type ) :
        case '' :
        case 'comment' :
 

Posted by on February 20, 2022 in Uncategorized

Leave a comment
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
 
0
Would love your thoughts, please comment.x
()
x