From 353638850709a0288144de4d47320d95b3f286ca Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Sun, 17 May 2020 20:27:51 +0800 Subject: =?UTF-8?q?:poop:=20Fix:=20=E6=9A=B4=E5=8A=9B=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=E5=8A=A0=E5=AF=86=E6=96=87=E7=AB=A0=E4=BC=9A?= =?UTF-8?q?=E8=A2=AB=20pjax=20=E5=88=B7=E6=96=B0=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 参考:https://zigzagk.top/2020/05/17/typechopassword --- functions.php | 1 + 1 file changed, 1 insertion(+) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 7812c8f..7b52301 100644 --- a/functions.php +++ b/functions.php @@ -17,6 +17,7 @@ Typecho_Plugin::factory('admin/write-page.php')->bottom = array('Utils', 'addBut * 主题启用时执行的方法 */ function themeInit($archive) { + if ($archive->hidden) header('HTTP/1.1 200 OK');//暴力解决访问加密文章会被 pjax 刷新页面的问题 Helper::options()->commentsAntiSpam = false;//关闭反垃圾 Helper::options()->commentsHTMLTagAllowed = ' '; Helper::options()->commentsMaxNestingLevels = '9999';//最大嵌套层数 -- cgit v1.2.3