diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2020-03-09 10:30:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-09 10:30:23 +0800 |
| commit | 709c0c1015b58f875401ed7316f01ba731939588 (patch) | |
| tree | 6a44b9e3ab23b9dc0b11b06707bd80891a09f84a | |
| parent | 2c9eb7678bbd4e410ed1eca5f100a3a852859edd (diff) | |
🕳 Del: 移除未实现的设置项
| -rw-r--r-- | functions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 92689ea..552454b 100644 --- a/functions.php +++ b/functions.php @@ -16,12 +16,13 @@ Typecho_Plugin::factory('admin/write-page.php')->bottom = array('Utils', 'addBut /** * 主题启用时执行的方法 */ -function themeInit() { +function themeInit($archive) { Helper::options()->commentsAntiSpam = false;//关闭反垃圾 Helper::options()->commentsHTMLTagAllowed = '<a href=""> <img src=""> <img src="" class=""> <code> <del>'; Helper::options()->commentsMaxNestingLevels = '9999';//最大嵌套层数 Helper::options()->commentsPageDisplay = 'first';//强制评论第一页 Helper::options()->commentsOrder = 'DESC';//将最新的评论展示在前 + Helper::options()->commentsCheckReferer = false;//关闭检查评论来源URL与文章链接是否一致判断(否则会无法评论) } /** |
