From 0b71b73f502022b6be3c7cf0116c5827dec85da9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=98=94=E8=90=BD?=
<45323514+BigCoke233@users.noreply.github.com>
Date: Sun, 31 Mar 2019 13:47:33 +0800
Subject: Bug fix
---
includes/post-content.php | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
(limited to 'includes/post-content.php')
diff --git a/includes/post-content.php b/includes/post-content.php
index 5aa7653..21a45ce 100644
--- a/includes/post-content.php
+++ b/includes/post-content.php
@@ -1,8 +1,11 @@
/s','
',$this->content);
- $content = preg_replace('//s','',$this->content);
- $content = preg_replace('/
/s','
',$this->content);
+ $content = $this->content;
+
+ $content = preg_replace('//s','',$content);
+ $content = preg_replace('//s','',$content);
+ $content = preg_replace('/
/s','
',$content);
+
//短代码(无参数)
$reg = '/\[scode\](.*?)\[\/scode\]/s';
$rp = '${1}
';
@@ -43,7 +46,6 @@
$reg = '/\[stext\](.*?)\[\/stext\]/s';
$rp = '${1}
';
$content = preg_replace($reg,$rp,$content);
-
-
- echo $content
+
+ echo $content;
?>
\ No newline at end of file
--
cgit v1.2.3