[wp-trac] [WordPress Trac] #37025: Improve the "disaster recovery" mode

WordPress Trac noreply at wordpress.org
Sat Jun 4 00:15:24 UTC 2016


#37025: Improve the "disaster recovery" mode
-------------------------+-----------------
 Reporter:  azaozz       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  4.6
Component:  Autosave     |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------
 We've had a "disaster recovery" that saves post title, content and excerpt
 in the browser's sessionStorage for a while. It runs every 15 seconds on
 the Edit Post screen and just before the user submits the form. However it
 shows very rarely, only when it detects that saving failed, and if the
 "There is a newer autosave..." message is not present (so we don't show
 two recovery options at the same time and confuse the users).

 This behavior needs to be changed as the content in the browser is more
 recent. If there is a "newer autosave" message and the disaster recovery
 script activates, it should hide the message. There are some other
 improvements like not running `editor.save()` if the content in the editor
 has not changed, etc.

 A great improvement will be to be able to show some sort of a preview with
 the changes that will be restored. However that deserves its own ticket
 and is probably out of scope this time.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37025>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list