Ticket #12982: diff-sc.diff
File diff-sc.diff, 763 bytes (added by , 15 years ago) |
---|
-
shortcodes.php
176 176 $tagregexp = join( '|', array_map('preg_quote', $tagnames) ); 177 177 178 178 // WARNING! Do not change this regex without changing do_shortcode_tag() and strip_shortcodes() 179 return '(.?)\[('.$tagregexp.')\b( .*?)(?:(\/))?\](?:(.+?)\[\/\2\])?(.?)';179 return '(.?)\[('.$tagregexp.')\b((?:[^\[\]]|(?R)|.)*?)(?:(\/))?\](?:(.+?)\[\/\2\])?(.?)'; 180 180 } 181 181 182 182 /** … … 293 293 return preg_replace('/'.$pattern.'/s', '$1$6', $content); 294 294 } 295 295 296 add_filter('the_content', 'do_shortcode', 11); // AFTER wpautop()296 add_filter('the_content', 'do_shortcode', 9); 297 297 298 298 ?> 299 No newline at end of file