[wp-trac] [WordPress Trac] #7392: Don't create new autosave revision if nothing has changed yet

WordPress Trac noreply at wordpress.org
Wed Jul 24 05:00:32 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 close                                     |
-------------------------------------------------+-------------------------

Comment (by nacin):

 [attachment:7392.4.diff] does two things:
  * Prevents an initial autosave when the TinyMCE editor is active on load.
  * Deletes useless autosaves when edit-form-advanced.php confirms it is
 useless.

 This, however, does not solve this issue:
  * Add a sentence.
  * Let autosave occur.
  * Remove the sentence.
  * Let autosave occur.

 At this point, the autosave is identical to the active/current revision,
 and should actually be *deleted*. This sounds like
 [attachment:7392.4.patch] but not quite — that would prevent the autosave
 from being updated with the removed sentence, likely leaving the autosave
 with the added sentence. In reality the user's autosave should be deleted.

 [attachment:7392.4.diff] is clearly a simple 3.6 improvement, though.
 Needs azaozz.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/7392#comment:35>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list