WordPress.org

Make WordPress Core

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


Ignore:
Timestamp:
03/23/2018 04:04:08 AM (4 years ago)
Author:
adamsilverstein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43316, comment 37

    initial v1  
    1 In [attachment:43316.7.diff]
     1In [attachment:43316.8.diff]
    22* 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.
    33* Add a  filter `wp_create_revision_for_api_autosave` enabling control of the revision creation behavior