From c60ba129f4ecad6d96853b52510f9c6705a4ab68 Mon Sep 17 00:00:00 2001 From: rica-carv Date: Mon, 5 Dec 2016 19:16:33 +0000 Subject: [PATCH] Update shortcode_handler.php --- e107_handlers/shortcode_handler.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/e107_handlers/shortcode_handler.php b/e107_handlers/shortcode_handler.php index 659c8d67e..b9b7b305d 100644 --- a/e107_handlers/shortcode_handler.php +++ b/e107_handlers/shortcode_handler.php @@ -1295,7 +1295,10 @@ class e_parse_shortcode if (isset($ret) && ($ret != '' || is_numeric($ret))) { $ret = $this->makeEditable($ret, $code); - $ret = $this->makeWrapper($ret, $code, $fullShortcodeKey, $sc_mode); + if (!$this->nowrap == $code) + { + $ret = $this->makeWrapper($ret, $code, $fullShortcodeKey, $sc_mode); + } } @@ -1416,11 +1419,13 @@ class e_parse_shortcode if(strpos($pre, '{') !== false) // shortcode found in wrapper { + $this->nowrap = $code; $pre = $this->parseCodes($pre, true, $this->addedCodes); } if(strpos($post, '{') !== false) // shortcode found in wrapper { + $this->nowrap = $code; $post = $this->parseCodes($post, true, $this->addedCodes); }