Ticket #17657: 17657.2.diff
File 17657.2.diff, 552 bytes (added by , 14 years ago) |
---|
-
wp-includes/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.')(?![\w-])(.*?)(?:(\/))?\](?:(.+?)\[\/\2\])?(.?)'; 180 180 } 181 181 182 182 /**