Skip to content

Commit

Permalink
0.921
Browse files Browse the repository at this point in the history
  • Loading branch information
solstice23 committed Mar 30, 2020
1 parent 1b5bb6e commit 8ded001
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ Argon 使用 [GPL V3.0](https://github.com/solstice23/argon-theme/blob/master/LI

# 更新日志

## 20200330 v0.921
+ 修复评论编辑历史记录的 BUG
+ 优化搜索逻辑

## 20200330 v0.920
+ 增加查看评论编辑历史记录功能
+ 增加 "谁可以查看评论编辑记录" 选项
Expand Down
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ function post_comment_updatemetas($id){
'time' => time(),
'isfirst' => true
));
update_comment_meta($id, "comment_edit_history", json_encode($editHistory));
update_comment_meta($id, "comment_edit_history", json_encode($editHistory, JSON_UNESCAPED_UNICODE));
//是否启用 Markdown
if ($_POST['use_markdown'] == 'true' && get_option("argon_comment_allow_markdown") != "false"){
update_comment_meta($id, "use_markdown", "true");
Expand Down Expand Up @@ -843,7 +843,7 @@ function user_edit_comment(){
'time' => time(),
'isfirst' => false
));
update_comment_meta($id, "comment_edit_history", json_encode($editHistory));
update_comment_meta($id, "comment_edit_history", json_encode($editHistory, JSON_UNESCAPED_UNICODE));
exit(json_encode(array(
'status' => 'success',
'msg' => '编辑评论成功',
Expand Down
4 changes: 2 additions & 2 deletions info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "0.920",
"version" : "0.921",
"details_url" : "https://github.com/solstice23/argon-theme/releases",
"download_url" : "https://github.com/solstice23/argon-theme/releases/download/v0.920/argon.zip"
"download_url" : "https://github.com/solstice23/argon-theme/releases/download/v0.921/argon.zip"
}
2 changes: 1 addition & 1 deletion searchform.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</div>
</div>
<div class="text-center">
<button onclick="document.getElementById('argon_serach_form').submit();" type="button" class="btn btn-primary">搜索</button>
<button onclick="if($('#argon_serach_form input[name=\'s\']').val() != '') {document.getElementById('argon_serach_form').submit();}" type="button" class="btn btn-primary">搜索</button>
</div>
</form>
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Theme Name: argon
Author: solstice23
Author URI: https://solstice23.top/
Description: 轻盈、简洁、美观的 Wordpress 主题
Version: 0.920
Version: 0.921
License: GNU General Public License v3.0
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: 简约, 两栏, 侧栏在左边, 浮动侧栏, 文章目录, 自适应, 夜间模式, 可自定义
Expand Down

0 comments on commit 8ded001

Please sign in to comment.