Preserve author during autosave. fixes #6753 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a5f480ebec
commit
d18e3f9d4a
|
@ -54,7 +54,7 @@ $saveasdraft = '<input name="save" type="submit" id="save" class="button" tabind
|
|||
<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
|
||||
<input type="hidden" id="hiddenaction" name="action" value="<?php echo $form_action ?>" />
|
||||
<input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" />
|
||||
<input type="hidden" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" />
|
||||
<input type="hidden" id="post_author" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" />
|
||||
<input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />
|
||||
<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" />
|
||||
<input name="referredby" type="hidden" id="referredby" value="<?php
|
||||
|
|
|
@ -177,6 +177,8 @@ var autosave = function() {
|
|||
post_data["ping_status"] = 'open';
|
||||
if ( jQuery("#excerpt") )
|
||||
post_data["excerpt"] = jQuery("#excerpt").val();
|
||||
if ( jQuery("#post_author") )
|
||||
post_data["post_author"] = jQuery("#post_author").val();
|
||||
|
||||
// Don't run while the TinyMCE spellcheck is on. Why? Who knows.
|
||||
if ( rich && tinyMCE.activeEditor.plugins.spellchecker && tinyMCE.activeEditor.plugins.spellchecker.active ) {
|
||||
|
|
Loading…
Reference in New Issue