From 4626dc756200857efba054778213b15aae9030c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E6=81=92?= <2323333339@qq.com> Date: Tue, 27 Apr 2021 12:22:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/function.php | 2 +- core/widget.php | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/function.php b/core/function.php index 36e718a..977e09f 100644 --- a/core/function.php +++ b/core/function.php @@ -2,7 +2,7 @@ /* 获取主题当前版本号 */ function _getVersion() { - return "6.7.0"; + return "6.7.1"; }; /* 判断是否是手机 */ diff --git a/core/widget.php b/core/widget.php index a13ed9f..c8235b5 100644 --- a/core/widget.php +++ b/core/widget.php @@ -32,6 +32,7 @@ class Widget_Contents_Sort extends Widget_Abstract_Contents ->from('table.contents') ->where('table.contents.type = ?', 'post') ->where('table.contents.status = ?', 'publish') + ->where('table.contents.created < ?', time()) ->limit($this->parameter->pageSize) ->offset($offset) ->order($this->parameter->type, Typecho_Db::SORT_DESC), diff --git a/package.json b/package.json index 243a4ec..a8f5836 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "typecho-joe-next", - "version": "6.7.0", + "version": "6.7.1", "description": "A Theme Of Typecho", "main": "index.php", "keywords": [