[wp-trac] [WordPress Trac] #43760: Create a revision when autosaving if the content has changed significantly

WordPress Trac noreply at wordpress.org
Fri Apr 13 17:34:06 UTC 2018


#43760: Create a revision when autosaving if the content has changed significantly
-------------------------------------------------+-------------------------
 Reporter:  azaozz                               |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Autosave                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by soulseekah):

 * keywords:  has-patch needs-testing => has-patch needs-testing has-unit-
     tests


Comment:

 Interesting.

 43760.1.diff is my version for a diff-based implementation instead. Just
 as an idea with some tests that can also be repurposed for your patch.

 Also, a suggestion on the `wp_create_revision_for_autosave` filter: I
 think should send in the `$post_data` and `$autosave_data`, the count
 probably useless as users would be using their own heuristics.

 Thoughts?

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


More information about the wp-trac mailing list