From 812a32e99504b9bd439e439652693cfce4d96297 Mon Sep 17 00:00:00 2001 From: k8n Date: Mon, 8 Feb 2021 16:18:13 -0500 Subject: [PATCH] Update shortcode-core.php 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