WordPress.org

Make WordPress Core

Changeset 7708


Ignore:
Timestamp:
04/16/2008 10:56:37 PM (10 years ago)
Author:
ryan
Message:

Preserve author during autosave. fixes #6753 for trunk

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r7689 r7708  
    5555<input type="hidden" id="hiddenaction" name="action" value="<?php echo $form_action ?>" />
    5656<input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" />
    57 <input type="hidden" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" />
     57<input type="hidden" id="post_author" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" />
    5858<input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />
    5959<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" />
  • trunk/wp-includes/js/autosave.js

    r7533 r7708  
    176176    if ( jQuery("#ping_status").attr("checked") )
    177177        post_data["ping_status"] = 'open';
    178     if( jQuery("#excerpt"))
     178    if ( jQuery("#excerpt") )
    179179        post_data["excerpt"] = jQuery("#excerpt").val();
     180    if ( jQuery("#post_author") )
     181        post_data["post_author"] = jQuery("#post_author").val();
    180182
    181183    // Don't run while the TinyMCE spellcheck is on.  Why?  Who knows.
Note: See TracChangeset for help on using the changeset viewer.