[wp-trac] [WordPress Trac] #43316: REST API: Support autosaves

WordPress Trac noreply at wordpress.org
Sat Mar 24 13:35:58 UTC 2018


#43316: REST API: Support autosaves
-------------------------------------------------+-------------------------
 Reporter:  kraftbj                              |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  5.0
Component:  REST API                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-unit-  |     Focuses:  rest-api
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by adamsilverstein):

 @azaozz
 Great, I'll take a look!

 I like the idea of using the percentage method for shorter text, which the
 likely the majority use case. Ideally, when Gutenberg will also add
 localstorage support for autosaves and we can store those much more
 frequently.

 @aduth
 > Finally, if we follow-through with this metric, would we want these
 thresholds to be filterable?

 A single filter at the end of the process that passes the difference
 calculation results (`wp_create_revision_for_api_autosave` ) is sufficient
 for plugins to provide custom behavior based on the difference. An extra
 filter for the threshold by itself seems like overkill.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43316#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list