wordpress-develop/src/wp-includes/rest-api
Adam Silverstein 30175c97ac Revisions: only create autosave when content changed.
In the autosave REST API endpoint, avoid excessive database writes when an autosave is sent with content that is unchanged from the saved post. 

Before this fix, clicking "preview" in the editor (which uses the autosave feature) multiple times would cause an identical autosave entry to be deleted and re-created repeatedly.

Props inwerpsel, aduth, mukesh27, ironprogrammer.
Fixes #49532.



git-svn-id: https://develop.svn.wordpress.org/trunk@55154 602fd350-edb4-49c9-b593-d223f7449a82
2023-01-27 22:01:59 +00:00
..
endpoints Revisions: only create autosave when content changed. 2023-01-27 22:01:59 +00:00
fields Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:45:36 +00:00
search Code Modernization: Add AllowDynamicProperties attribute to all (parent) classes. 2022-09-12 15:45:36 +00:00
class-wp-rest-request.php Docs: Align spelling with American English. 2022-10-21 21:10:29 +00:00
class-wp-rest-response.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:49:49 +00:00
class-wp-rest-server.php Code Modernization: Rename parameters that use reserved keywords in wp-includes/rest-api/class-wp-rest-server.php. 2022-12-13 18:32:33 +00:00