Ticket #11947: 11947.patch
File 11947.patch, 2.0 KB (added by , 13 years ago) |
---|
-
wp-admin/js/editor.dev.js
107 107 }, 108 108 109 109 _wp_Autop : function(pee) { 110 var blocklist = 'table|thead|tfoot| tbody|tr|td|th|caption|col|colgroup|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6]|fieldset|legend|hr|noscript|menu|samp|header|footer|article|section|hgroup|nav|aside|details|summary';110 var blocklist = '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|noscript|samp|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary'; 111 111 112 112 if ( pee.indexOf('<object') != -1 ) { 113 113 pee = pee.replace(/<object[\s\S]+?<\/object>/g, function(a){ -
wp-includes/formatting.php
174 174 $pee = $pee . "\n"; // just to make things a little easier, pad the end 175 175 $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee); 176 176 // Space things out a little 177 $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)';177 $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|noscript|samp|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)'; 178 178 $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee); 179 179 $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee); 180 180 $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines