Skip to content

Commit

Permalink
Update shortcode-core.php
Browse files Browse the repository at this point in the history
A workaround suggested in getgrav#87. Likely addresses getgrav#96 and getgrav#97 as well.
  • Loading branch information
k8n authored Feb 8, 2021
1 parent b4f4bc6 commit 812a32e
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 812a32e

Please sign in to comment.