Changeset 12206
- Timestamp:
- 11/18/2009 08:12:05 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/shortcodes.php
r10810 r12206 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 } … … 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
Note: See TracChangeset
for help on using the changeset viewer.