Ticket #4991: edit_form_adv_post_type.diff
File edit_form_adv_post_type.diff, 851 bytes (added by , 17 years ago) |
---|
-
wp-admin/edit-form-advanced.php
54 54 <input type="hidden" id="hiddenaction" name="action" value="<?php echo $form_action ?>" /> 55 55 <input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" /> 56 56 <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) ?>" /> 58 58 59 59 <?php echo $form_extra ?> 60 60 <?php if ((isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?>