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:
Andrew Ozz 2013-05-22 21:43:45 +00:00
parent df63c08216
commit 23514efe8a
1 changed files with 1 additions and 0 deletions

View File

@ -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