Make WordPress Core

Ticket #29219: 29219.diff

File 29219.diff, 1.7 KB (added by wonderboymusic, 9 years ago)
  • src/wp-admin/js/editor.js

     
    211211                        preserve_br = false,
    212212                        blocklist = 'table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre' +
    213213                                '|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';
    215215
    216216                if ( pee.indexOf( '<object' ) !== -1 ) {
    217217                        pee = pee.replace( /<object[\s\S]+?<\/object>/g, function( a ) {
  • src/wp-includes/formatting.php

     
    405405
    406406        $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee);
    407407        // 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)';
    409409        $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee);
    410410        $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee);
    411411        $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines