Changeset 24787
- Timestamp:
- 07/24/2013 05:37:53 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r24762 r24787 99 99 } 100 100 } 101 // If this autosave isn't different from the current post, begone. 102 if ( ! $notice ) 103 wp_delete_post_revision( $autosave->ID ); 101 104 unset($autosave_field, $_autosave_field); 102 105 } -
trunk/wp-includes/js/autosave.js
r24774 r24787 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 }
Note: See TracChangeset
for help on using the changeset viewer.