Ticket #10326: 10326.001.diff
File 10326.001.diff, 751 bytes (added by , 14 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 // WARNING! Do not change this regex without changing do_shortcode_tag() and strip_shortcodes() 178 179 return '(.?)\[('.$tagregexp.')\b(.*?)(?:(\/))?\](?:(.+?)\[\/\2\])?(.?)'; 179 180 } 180 181 … … 289 290 290 291 $pattern = get_shortcode_regex(); 291 292 292 return preg_replace('/'.$pattern.'/s', ' ', $content);293 return preg_replace('/'.$pattern.'/s', '$1$6', $content); 293 294 } 294 295 295 296 add_filter('the_content', 'do_shortcode', 11); // AFTER wpautop()