Skip to content

Commit

Permalink
0.931
Browse files Browse the repository at this point in the history
  • Loading branch information
solstice23 committed Apr 6, 2020
1 parent 8297eeb commit e6d157c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 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

# 更新日志

## 20200407 v0.931
+ 修复新旧版本 `Parsedown` 类库冲突的问题
+ 修复小 BUG

## 20200405 v0.930
+ 左侧栏顶部菜单支持无限层级嵌套子菜单

Expand Down
8 changes: 5 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,10 @@ function check_comment_captcha($comment){
}
return $comment;
}
if($comment_data['comment_type'] == ''){
add_filter('preprocess_comment' , 'check_comment_captcha');
if(isset($comment_data)){
if ($comment_data['comment_type'] == ''){
add_filter('preprocess_comment' , 'check_comment_captcha');
}
}
//Ajax 发送评论
function ajax_post_comment(){
Expand Down Expand Up @@ -672,7 +674,7 @@ function comment_markdown_parse($comment_content){
$allowedtags['h1'] = $allowedtags['h2'] = $allowedtags['h3'] = $allowedtags['h4'] = $allowedtags['h5'] = $allowedtags['h6'] = array();

//解析 Markdown
$parsedown = new Parsedown();
$parsedown = new _Parsedown();
$res = $parsedown -> text($comment_content);
/*$res = preg_replace(
'/<code>([\s\S]*?)<\/code>/',
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.930",
"version" : "0.931",
"details_url" : "https://github.com/solstice23/argon-theme/releases",
"download_url" : "https://github.com/solstice23/argon-theme/releases/download/v0.930/argon.zip"
"download_url" : "https://github.com/solstice23/argon-theme/releases/download/v0.931/argon.zip"
}
2 changes: 1 addition & 1 deletion parsedown.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#
#

class Parsedown
class _Parsedown
{
# ~

Expand Down
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.930
Version: 0.931
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 e6d157c

Please sign in to comment.