Ticket #9264: shortcodes.diff
File shortcodes.diff, 619 bytes (added by , 16 years ago) |
---|
-
wp-includes/shortcodes.php
175 175 $tagnames = array_keys($shortcode_tags); 176 176 $tagregexp = join( '|', array_map('preg_quote', $tagnames) ); 177 177 178 return '(.?)\[('.$tagregexp.')\b(.*?)(?:(\/))?\](? :(.+?)\[\/\2\])?(.?)';178 return '(.?)\[('.$tagregexp.')\b(.*?)(?:(\/))?\](?(4)|(?:(.+?)\[\/\2\]))?(.?)'; 179 179 } 180 180 181 181 /** … … 294 294 295 295 add_filter('the_content', 'do_shortcode', 11); // AFTER wpautop() 296 296 297 ?> 298 No newline at end of file 297 ?>