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

WordPress Trac noreply at wordpress.org
Tue Mar 26 00:40:32 UTC 2013


#7392: Don't create new autosave revision if nothing has changed yet
-------------------------------------------------+-------------------------
 Reporter:  Otto42                               |       Owner:  westi
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  3.6
Component:  Autosave                             |     Version:  2.6
 Severity:  minor                                |  Resolution:  fixed
 Keywords:  has-patch needs-testing 3.6-early    |
  autosave-redo                                  |
-------------------------------------------------+-------------------------

Comment (by azaozz):

 dont-save-autosave.diff won't work as expected (and has a copy/paste typo,
 `$new_data` is not defined in `wp_create_post_autosave()`).

 It only checks whether the autosave is the same as the current post when a
 previous autosave exists. To catch the first autosave, perhaps we can move
 the test for changed fields from `wp_save_post_revision()` to
 `_wp_put_post_revision()`. We will still need the same test in
 `wp_create_post_autosave()` for the cases when an autosave is updated.

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


More information about the wp-trac mailing list