From 709c0c1015b58f875401ed7316f01ba731939588 Mon Sep 17 00:00:00 2001 From: Eltrac Koalar Date: Mon, 9 Mar 2020 10:30:23 +0800 Subject: =?UTF-8?q?=F0=9F=95=B3=20Del:=20=E7=A7=BB=E9=99=A4=E6=9C=AA?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E7=9A=84=E8=AE=BE=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'functions.php') 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 = ' '; Helper::options()->commentsMaxNestingLevels = '9999';//最大嵌套层数 Helper::options()->commentsPageDisplay = 'first';//强制评论第一页 Helper::options()->commentsOrder = 'DESC';//将最新的评论展示在前 + Helper::options()->commentsCheckReferer = false;//关闭检查评论来源URL与文章链接是否一致判断(否则会无法评论) } /** -- cgit v1.2.3