Ticket #4991: post_type.diff
File post_type.diff, 1.3 KB (added by , 17 years ago) |
---|
-
wp-admin/includes/post.php
144 144 $post_excerpt = ''; 145 145 146 146 $post->post_status = 'draft'; 147 $post->post_type = 'post'; 147 148 $post->comment_status = get_option( 'default_comment_status' ); 148 149 $post->ping_status = get_option( 'default_ping_status' ); 149 150 $post->post_pingback = get_option( 'default_pingback_flag' ); -
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 $post->post_type ?>" /> 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'])) : ?>