fix BBCode image

This commit is contained in:
spirit 2019-12-15 22:33:54 +08:00
parent a99102fdac
commit 443894d488

View File

@ -1687,7 +1687,7 @@ function markdown_parser($incoming_comment) {
$comment_markdown_content = $incoming_comment['comment_content']; $comment_markdown_content = $incoming_comment['comment_content'];
include 'inc/Parsedown.php'; include 'inc/Parsedown.php';
$Parsedown = new Parsedown(); $Parsedown = new Parsedown();
$incoming_comment['comment_content'] = $Parsedown->text($incoming_comment['comment_content']); $incoming_comment['comment_content'] = $Parsedown->setUrlsLinked(false)->text($incoming_comment['comment_content']);
return $incoming_comment; return $incoming_comment;
} }
add_filter('preprocess_comment' , 'markdown_parser'); add_filter('preprocess_comment' , 'markdown_parser');