diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-05-17 20:27:51 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-05-17 20:27:51 +0800 |
| commit | 353638850709a0288144de4d47320d95b3f286ca (patch) | |
| tree | aca4fb899d30e724ff8c0006ee98e592ce315433 /functions.php | |
| parent | 88f49b5077de6519305d9af307ccb523ba7c907a (diff) | |
:poop: Fix: 暴力解决访问加密文章会被 pjax 刷新页面的问题
参考:https://zigzagk.top/2020/05/17/typechopassword
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 1 |
1 files changed, 1 insertions, 0 deletions
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 = '<a href=""> <img src=""> <img src="" class=""> <code> <del>'; Helper::options()->commentsMaxNestingLevels = '9999';//最大嵌套层数 |
