Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #43316, comment 37


Ignore:
Timestamp:
03/23/2018 04:05:24 AM (6 years ago)
Author:
adamsilverstein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43316, comment 37

    v1 v2  
    11In [attachment:43316.8.diff]
    2 * If the autosave content is significantly different, create a revision. I used a value of 250 which i think is around a paragraph, i realized a percent might not work, for a very large document for example a revision would only get made aver a huge change. one save per paragraph seems about right, i'd like some feedback though.
     2* If the autosave content is significantly different, create a revision. I used a value of 250 (characters) which i think is around a paragraph, i realized a percent might not work, for a very large document for example a revision would only get made aver a huge change. one save per paragraph seems about right, i'd like some feedback though. is this approach multi character compatible I wonder?
    33* Add a  filter `wp_create_revision_for_api_autosave` enabling control of the revision creation behavior
    44* For the collection endpoint, return all the autosaves, not just those belonging to to the current user.