Skip to content

Commit

Permalink
修复ajax不应该显示评论等级的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jd82k committed Apr 23, 2024
1 parent bf8f421 commit 87a84fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/fun/comment-ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function pk_comment_ajax()
$comment_approved_str = '';

if ($comment->comment_approved == '0') {
$comment_approved_str = '<p class="c-sub mt-1 t-sm"><i class="fa fa-warning mr-1"></i>您的评论正在等待审核!</p>';
$comment_approved_str = '<p class="c-sub mt-1"><i class="fa fa-warning mr-1"></i>您的评论正在等待审核!</p>';
}

wp_set_comment_cookies($comment, $user);
Expand All @@ -186,7 +186,7 @@ function pk_comment_ajax()
<div class="ml-3 two-info">
<div class="puock-text ta3b">
<span class="t-md puock-links">' . get_comment_author_link($comment_id) . '</span>
' . pk_the_author_class(false, $comment) . '
' . (pk_is_checked('comment_level') ? pk_the_author_class(false, $comment) : '') . '
</div>
<div class="t-sm c-sub">' . get_comment_date('Y-m-d H:i:s', $comment_id) . '</div>
</div>
Expand Down

0 comments on commit 87a84fb

Please sign in to comment.