WordPress.org

Make WordPress Core

Ticket #27076: 27076.diff

File 27076.diff, 647 bytes (added by arupqfjm, 6 years ago)
  • wp-admin/js/editor.js

     
    161161                // Fix some block element newline issues
    162162                content = content.replace( /\s*<div/g, '\n<div' );
    163163                content = content.replace( /<\/div>\s*/g, '</div>\n' );
    164                 content = content.replace( /\s*\[caption([^\[]+)\[\/caption\]\s*/gi, '\n\n[caption$1[/caption]\n\n' );
    165164                content = content.replace( /caption\]\n\n+\[caption/g, 'caption]\n\n[caption' );
    166165
    167166                blocklist2 = 'blockquote|ul|ol|li|table|thead|tbody|tfoot|tr|th|td|h[1-6]|pre|fieldset';