Remember the post_parent during autosaves. Props duck_. Fixes #12938
git-svn-id: https://develop.svn.wordpress.org/trunk@14057 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0197326e4c
commit
8823027da6
|
@ -264,12 +264,14 @@ autosave = function() {
|
||||||
post_data["excerpt"] = jQuery("#excerpt").val();
|
post_data["excerpt"] = jQuery("#excerpt").val();
|
||||||
if ( jQuery("#post_author").size() )
|
if ( jQuery("#post_author").size() )
|
||||||
post_data["post_author"] = jQuery("#post_author").val();
|
post_data["post_author"] = jQuery("#post_author").val();
|
||||||
|
if ( jQuery("#parent_id").val() )
|
||||||
|
post_data["parent_id"] = jQuery("#parent_id").val();
|
||||||
post_data["user_ID"] = jQuery("#user-id").val();
|
post_data["user_ID"] = jQuery("#user-id").val();
|
||||||
if ( jQuery('#auto_draft').val() == '1' )
|
if ( jQuery('#auto_draft').val() == '1' )
|
||||||
post_data["auto_draft"] = '1';
|
post_data["auto_draft"] = '1';
|
||||||
|
|
||||||
if ( doAutoSave ) {
|
if ( doAutoSave ) {
|
||||||
autosaveLast = jQuery("#title").val()+jQuery("#content").val();
|
autosaveLast = jQuery("#title").val() + jQuery("#content").val();
|
||||||
} else {
|
} else {
|
||||||
post_data['autosave'] = 0;
|
post_data['autosave'] = 0;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue