Ticket #7392: 7392.3.diff
File 7392.3.diff, 739 bytes (added by , 11 years ago) |
---|
-
wp-includes/js/autosave.js
7 7 if ( 'content' == editor.id ) { 8 8 editor.onLoad.add( function() { 9 9 editor.save(); 10 autosaveLast = wp.autosave.getCompareString(); 10 if ( typeof switchEditors != 'undefined' ) { 11 autosaveLast = wp.autosave.getCompareString({ 12 post_title : $('#title').val() || '', 13 content : switchEditors.pre_wpautop( $('#content').val() ) || '', 14 excerpt : $('#excerpt').val() || '', 15 }); 16 } else { 17 autosaveLast = wp.autosave.getCompareString(); 18 } 11 19 }); 12 20 } 13 21 });