[wp-trac] [WordPress Trac] #54708: Retain existing autosave when new autosave is the same

WordPress Trac noreply at wordpress.org
Wed Dec 29 18:23:07 UTC 2021


#54708: Retain existing autosave when new autosave is the same
------------------------------------------------+--------------------------
 Reporter:  adamsilverstein                     |       Owner:
                                                |  adamsilverstein
     Type:  defect (bug)                        |      Status:  assigned
 Priority:  normal                              |   Milestone:  Awaiting
                                                |  Review
Component:  General                             |     Version:
 Severity:  normal                              |  Resolution:
 Keywords:  dev-feedback has-patch 2nd-opinion  |     Focuses:
------------------------------------------------+--------------------------
Changes (by adamsilverstein):

 * keywords:   => dev-feedback has-patch 2nd-opinion
 * owner:  (none) => adamsilverstein
 * status:  new => assigned


Comment:

 In [attachment:"54708.2.diff"]:

 When sending the data to the autosave REST API endpoint:
 * If no autosave exists for the user, create one
 * If an autosave exists for the user, update it

 Also:
 * Remove logic that previously would delete existing autosaves that
 matched the post content which had the unfortunate side effect of breaking
 previews because preview setup requires and checks for the presence of an
 autosave.

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


More information about the wp-trac mailing list