From 3e5622c5ce391831f459aacbdc7e4772c80a57de Mon Sep 17 00:00:00 2001 From: k8n Date: Wed, 10 Mar 2021 18:14:26 -0500 Subject: [PATCH] Update shortcode-core.php (#101) A workaround suggested in #87. Likely addresses #96 and #97 as well. --- shortcode-core.php | 1 + 1 file changed, 1 insertion(+) diff --git a/shortcode-core.php b/shortcode-core.php index bde7e21..6febb5c 100644 --- a/shortcode-core.php +++ b/shortcode-core.php @@ -113,6 +113,7 @@ public function onPageContentProcessed(Event $e) */ protected function processShortcodes(PageInterface $page, $type = 'processContent') { $meta = []; + $this->shortcodes->resetObjects(); // clear shortcodes that may have been processed in this execution thread before $config = $this->mergeConfig($page); // Don't run in admin pages other than content