Ticket #14050: 14050.001.diff
File 14050.001.diff, 586 bytes (added by , 14 years ago) |
---|
-
wp-includes/formatting.php
238 238 $tagnames = array_keys($shortcode_tags); 239 239 $tagregexp = join( '|', array_map('preg_quote', $tagnames) ); 240 240 $pee = preg_replace('/<p>\\s*?(\\[(' . $tagregexp . ')\\b.*?\\/?\\](?:.+?\\[\\/\\2\\])?)\\s*<\\/p>/s', '$1', $pee); 241 $pee = preg_replace('/(\\[(' . $tagregexp . ')\\b.*?\\/?\\](?:.+?\\[\\/\\2\\])?)\\s*<br\\s*\\/>/s', '$1', $pee); 241 242 } 242 243 243 244 return $pee;