[wp-trac] [WordPress Trac] #58739: Return original autosave after saving with unchanged data
WordPress Trac
noreply at wordpress.org
Thu Jul 6 14:44:53 UTC 2023
#58739: Return original autosave after saving with unchanged data
-----------------------------+-------------------------
Reporter: adamsilverstein | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3
Component: Revisions | Version: 6.2
Severity: normal | Keywords: needs-patch
Focuses: |
-----------------------------+-------------------------
This is a follow up to https://core.trac.wordpress.org/ticket/49532. In
https://core.trac.wordpress.org/changeset/55154 the autosave endpoint was
adjusted so that if the autosave was a duplicate (no data had changed) an
error was returned. This fixed an issue where the autosave would be
deleted and recreated each time the (unchanged) data was saved.
Unfortunately, this caused at least two regressions as noted in
https://core.trac.wordpress.org/ticket/49532#comment:33 and
https://github.com/WordPress/gutenberg/issues/51088.
After reviewing this more carefully, a better approach would be to return
the original autosave instead of an error - that way, endpoint consumers
will get the data back in the shape the expect and the autosave will work
as expected.
Patch incoming
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58739>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list