[wp-trac] [WordPress Trac] #58739: Return original autosave after saving with unchanged data

WordPress Trac noreply at wordpress.org
Fri Jul 7 17:51:27 UTC 2023


#58739: Return original autosave after saving with unchanged data
---------------------------------------------+-----------------------------
 Reporter:  adamsilverstein                  |       Owner:
                                             |  adamsilverstein
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.3
Component:  Revisions                        |     Version:  6.2
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by adamsilverstein):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56163" 56163]:
 {{{
 #!CommitTicketReference repository="" revision="56163"
 Revisions: return existing autosave after saving with unchanged data.

 Correctly return the existing autosave when an unchanged autosave is
 saved, instead of returning an error.

 Fix regressions after r55154 where an error and not the original autosave
 was returned when saving with unchanged data (for example, clicking the
 preview button repeatedly). Returning the autosave (ID) is the expected
 behavior for the endpoint.

 Follow up to [55154]

 Props Mamaduka, jeroenrotty, mrfoxtalbot.
 Fixes #58739.
 }}}

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


More information about the wp-trac mailing list