Ticket #29219: 29219.diff
| File 29219.diff, 1.7 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/js/editor.js
211 211 preserve_br = false, 212 212 blocklist = 'table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre' + 213 213 '|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section' + 214 '|article|aside|hgroup|header|footer|nav|figure| details|menu|summary';214 '|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary'; 215 215 216 216 if ( pee.indexOf( '<object' ) !== -1 ) { 217 217 pee = pee.replace( /<object[\s\S]+?<\/object>/g, function( a ) { -
src/wp-includes/formatting.php
405 405 406 406 $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee); 407 407 // Space things out a little 408 $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure| details|menu|summary)';408 $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|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)'; 409 409 $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee); 410 410 $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee); 411 411 $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines