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

WordPress Trac noreply at wordpress.org
Sat Jul 27 17:11:00 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  |
---------------------------------------------------+-----------------------

Comment (by azaozz):

 Was able to reproduce in Chrome (after lots of attempts). The problem is
 with script timing. This should run after TinyMCE is loaded but before
 tinymce.init(). One way to do this is by firing a JS event. Currently we
 init TinyMCE as soon as it loads as we want it to be ready for use as soon
 as possible.

 Another option is to move that code from autosave.js to the 'wordpress'
 TinyMCE plugin. As `autosaveLast` is a JS global we can set it initially
 to the as-loaded value and then set it to as-saved-from-tinymce when the
 Visual editor is default. Testing a new patch.

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


More information about the wp-trac mailing list