From db7bb493977db4ac8182ffd752ed426e4280110d Mon Sep 17 00:00:00 2001 From: spirit Date: Fri, 22 Nov 2019 17:47:36 +0800 Subject: [PATCH] fix image gallery --- functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index fff86a7..e058a1b 100644 --- a/functions.php +++ b/functions.php @@ -1519,8 +1519,8 @@ function html_tag_parser($content) { //With Thumbnail: !{alt}(url)[th_url] if (preg_match_all('/\!\{.*?\)\[.*?\]/i', $content,$matches)){ $i=0; - foreach ($matches as $val) { - $content=str_replace($val[$i],preg_replace( + if ($i', - $val[$i]), + $matches[$i]), $content); $i++; }