Local autosaves: always set 'autosave = true' in the post data when triggering local autosave on form submit. Fixes cases where the form is submitted shortly after loading the Edit screen, local autosave hasn't run yet and there is no previous data to be merged. Fixes #23960.
git-svn-id: https://develop.svn.wordpress.org/trunk@24328 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
df63c08216
commit
23514efe8a
|
@ -488,6 +488,7 @@ wp.autosave.local = {
|
|||
} else {
|
||||
post_data = this.getData() || {};
|
||||
$.extend( post_data, data );
|
||||
post_data.autosave = true;
|
||||
}
|
||||
|
||||
// If the content and title did not change since the last save, don't save again
|
||||
|
|
Loading…
Reference in New Issue