Ticket #16456: 16456.2.patch
File 16456.2.patch, 1.1 KB (added by , 13 years ago) |
---|
-
wp-includes/formatting.php
178 178 $pee = $pee . "\n"; // just to make things a little easier, pad the end 179 179 $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee); 180 180 // Space things out a little 181 $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| input|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)';181 $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|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)'; 182 182 $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee); 183 183 $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee); 184 184 $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines