Merge pull request #871 from AlanDecode/master

修复通过 metaWeblog 接口新建草稿时返回 cid 错误的问题
This commit is contained in:
joyqi 2019-12-18 11:47:49 +08:00 committed by GitHub
commit d695ce3ce5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -108,6 +108,9 @@ class Widget_Contents_Page_Edit extends Widget_Contents_Post_Edit implements Wid
// 完成发布插件接口
$this->pluginHandle()->finishSave($contents, $this);
/** 设置高亮 */
$this->widget('Widget_Notice')->highlight($this->cid);
if ($this->request->isAjax()) {
$created = new Typecho_Date($this->options->time);
$this->response->throwJson(array(

View File

@ -770,6 +770,9 @@ class Widget_Contents_Post_Edit extends Widget_Abstract_Contents implements Widg
// 完成保存插件接口
$this->pluginHandle()->finishSave($contents, $this);
/** 设置高亮 */
$this->widget('Widget_Notice')->highlight($this->cid);
if ($this->request->isAjax()) {
$created = new Typecho_Date();
$this->response->throwJson(array(