[wp-trac] [WordPress Trac] #7392: Don't create new autosave revision if nothing has changed yet
WordPress Trac
noreply at wordpress.org
Mon Jul 29 09:04:14 UTC 2013
#7392: Don't create new autosave revision if nothing has changed yet
-------------------------------------------------+-------------------------
Reporter: Otto42 | Owner: westi
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.6
Component: Autosave | Version: 2.6
Severity: minor | Resolution:
Keywords: has-patch needs-testing autosave- |
redo commit |
-------------------------------------------------+-------------------------
Comment (by nacin):
[attachment:7392.8.diff] fixes this situation:
* Add a sentence.
* Let autosave occur.
* Remove the sentence.
* Let autosave occur.
* At this point, the autosave should be deleted.
It only deletes the autosave when there is an existing autosave, because
JS handles the situation when there is no existing autosave (where an
autosave is identical to the current post) and because it's actually more
difficult to handle that case.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/7392#comment:57>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list