Skip to content

Commit 455514e

Browse files
committed
Remove our shortcodes from the original ones to avoid running them multiple times
1 parent 34dfa75 commit 455514e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntaxhighlighter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,8 @@ function shortcode_hack( $content, $callback, $ignore_html = true ) {
659659
return $content;
660660
}
661661

662-
// Backup current registered shortcodes and clear them all out
663-
$orig_shortcode_tags = $shortcode_tags;
662+
// Backup current registered shortcodes and clear them all out (we do not backup our own, because we will add and parse them below)
663+
$orig_shortcode_tags = array_diff_key( $shortcode_tags, array_flip( $this->shortcodes ) );
664664
remove_all_shortcodes();
665665

666666
// Register all of this plugin's shortcodes

0 commit comments

Comments
 (0)