Skip to content

Commit 392bfae

Browse files
committed
Stop adding the same filter multiple times
1 parent cefde48 commit 392bfae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntaxhighlighter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,8 @@ function shortcode_hack( $content, $callback, $ignore_html = true ) {
689689
// Register all other shortcodes, ensuring their content remains unchanged using yet another hack.
690690
foreach ( $orig_shortcode_tags as $shortcode_tagname => $shortcode ) {
691691
add_shortcode( $shortcode_tagname, '__return_empty_string' );
692-
add_filter( 'pre_do_shortcode_tag', array( $this, 'pre_do_shortcode_shortcode_hack_skip_others' ), 10, 4 );
693692
}
693+
add_filter( 'pre_do_shortcode_tag', array( $this, 'pre_do_shortcode_shortcode_hack_skip_others' ), 10, 4 );
694694

695695
$regex = '/' . get_shortcode_regex() . '/';
696696

0 commit comments

Comments
 (0)