WordPress.org

Make WordPress Core

Ticket #6128: 6128.js.diff

File 6128.js.diff, 575 bytes (added by Denis-de-Bernardy, 5 years ago)
  • Users/denis/Sites/sem-pro/wp-admin/js/editor.dev.js

     
    136136        }, 
    137137 
    138138        wpautop : function(pee) { 
     139                if ( pee.replace(/^\s+|\s+$/g,'') === '' ) return ''; 
     140                 
    139141                var blocklist = 'table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6]'; 
    140142 
    141143                if ( pee.indexOf('<object') != -1 ) {