mirror of
https://github.com/typecho/typecho.git
synced 2025-03-19 17:39:42 +01:00
commit
b257d053f6
@ -101,8 +101,6 @@ class Widget_Comments_Archive extends Widget_Abstract_Comments
|
||||
$commentClass .= ' comment-by-user';
|
||||
}
|
||||
}
|
||||
|
||||
$commentLevelClass = $this->levels > 0 ? ' comment-child' : ' comment-parent';
|
||||
?>
|
||||
<li itemscope itemtype="http://schema.org/UserComments" id="<?php $this->theId(); ?>" class="comment-body<?php
|
||||
if ($this->levels > 0) {
|
||||
|
@ -114,7 +114,7 @@ class Widget_Feedback extends Widget_Abstract_Comments implements Widget_Interfa
|
||||
|
||||
/** 评论者之前须有评论通过了审核 */
|
||||
if (!$this->options->commentsRequireModeration && $this->options->commentsWhitelist) {
|
||||
if ($commentApprovedNum = $this->size($this->select()->where('author = ? AND mail = ? AND status = ?', $comment['author'], $comment['mail'], 'approved'))) {
|
||||
if ($this->size($this->select()->where('author = ? AND mail = ? AND status = ?', $comment['author'], $comment['mail'], 'approved'))) {
|
||||
$comment['status'] = 'approved';
|
||||
} else {
|
||||
$comment['status'] = 'waiting';
|
||||
@ -211,7 +211,7 @@ class Widget_Feedback extends Widget_Abstract_Comments implements Widget_Interfa
|
||||
$trackback = $this->pluginHandle()->trackback($trackback, $this->_content);
|
||||
|
||||
/** 添加引用 */
|
||||
$trackbackId = $this->insert($trackback);
|
||||
$this->insert($trackback);
|
||||
|
||||
/** 评论完成接口 */
|
||||
$this->pluginHandle()->finishTrackback($this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user