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: http://core.svn.wordpress.org/trunk@24328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bb1e5b4d33
commit
f17d4bf90f
|
@ -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