WordPress.org

Make WordPress Core

Changeset 7709


Ignore:
Timestamp:
04/16/08 22:57:13 (7 years ago)
Author:
ryan
Message:

Preserve author during autosave. fixes #6753 for 2.5

Location:
branches/2.5
Files:
2 edited

Legend:

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

    r7670 r7709  
    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 ?>" /> 
  • branches/2.5/wp-includes/js/autosave.js

    r7533 r7709  
    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.