Skip to content

Commit

Permalink
Update shortcode-core.php (#101)
Browse files Browse the repository at this point in the history
A workaround suggested in #87. Likely addresses #96 and #97 as well.
  • Loading branch information
k8n authored Mar 10, 2021
1 parent 484322d commit 3e5622c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shortcode-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e5622c

Please sign in to comment.