Ticket #22230: 22230.2.patch
File 22230.2.patch, 1.1 KB (added by , 11 years ago) |
---|
-
wp-includes/formatting.php
234 234 235 235 $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee); 236 236 // Space things out a little 237 $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre| select|option|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|noscript|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)';237 $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|option|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|noscript|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)'; 238 238 $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee); 239 239 $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee); 240 240 $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines