var/Widget/Archive.php
的1399
行,将$select->order('table.contents.created', Typecho_Db::SORT_DESC)
中的created
改为:modified
var/Widget/Contents/Post/Admin.php
的176
行,将$select->order('table.contents.created', Typecho_Db::SORT_DESC)
中的created
改为:modified
admin/manage-posts.php
的149
行<?php $posts->dateWord(); ?>
改为:<?php $modifyDate = new Typecho_Date($posts->modified); ?>
<?php echo $modifyDate->word(); ?>
var/Widget/Contents/Post/Edit.php
的761
行:$this->response->redirect(Typecho_Common::url('manage-posts.php?' . $pageQuery, $this->options->adminUrl));
改为
:$this->response->redirect(Typecho_Common::url('manage-posts.php?page=1', $this->options->adminUrl));
$endSelect = $restPostSelect->order('table.contents.created', Typecho_Db::SORT_DESC);
$rest_posts = $db->fetchAll($restPostSelect->order('table.contents.created', Typecho_Db::SORT_DESC)->page($this->_currentPage, $this->parameter->pageSize));
$endSelect = $restPostSelect->order('table.contents.modified', Typecho_Db::SORT_DESC);
$rest_posts = $db->fetchAll($restPostSelect->order('table.contents.modified', Typecho_Db::SORT_DESC)->page($this->_currentPage, $this->parameter->pageSize));
#如无特别声明,该文章均为 fanbaba 原创,转载请遵循
署名-非商业性使用 4.0 国际(CC BY-NC 4.0) 协议,即转载请注明文章来源。
#最后编辑时间为: 2021 年 11 月 23 日