Make WordPress Core

Ticket #11947: 11947.patch

File 11947.patch, 2.0 KB (added by SergeyBiryukov, 13 years ago)
  • wp-admin/js/editor.dev.js

     
    107107        },
    108108
    109109        _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';
    111111
    112112                if ( pee.indexOf('<object') != -1 ) {
    113113                        pee = pee.replace(/<object[\s\S]+?<\/object>/g, function(a){
  • wp-includes/formatting.php

     
    174174        $pee = $pee . "\n"; // just to make things a little easier, pad the end
    175175        $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee);
    176176        // 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)';
    178178        $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee);
    179179        $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee);
    180180        $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines