Make WordPress Core

Ticket #4991: edit_form_adv_post_type.diff

File edit_form_adv_post_type.diff, 851 bytes (added by filosofo, 17 years ago)
  • wp-admin/edit-form-advanced.php

     
    5454<input type="hidden" id="hiddenaction" name="action" value="<?php echo $form_action ?>" />
    5555<input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" />
    5656<input type="hidden" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" />
    57 <input type="hidden" id="post_type" name="post_type" value="post" />
     57<input type="hidden" id="post_type" name="post_type" value="<?php echo get_post_type($post) ?>" />
    5858
    5959<?php echo $form_extra ?>
    6060<?php if ((isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?>