Ticket #4991: 5740.diff
File 5740.diff, 2.1 KB (added by , 17 years ago) |
---|
-
wp-admin/edit-form-advanced.php
47 47 $saveasdraft = '<input name="save" type="submit" id="save" tabindex="3" value="' . attribute_escape( __('Save and Continue Editing') ) . '" />'; 48 48 49 49 if (empty($post->post_status)) $post->post_status = 'draft'; 50 if (empty($post->post_type)) $post->post_type = 'post'; 50 51 51 52 ?> 52 53 … … 54 55 <input type="hidden" id="hiddenaction" name="action" value="<?php echo $form_action ?>" /> 55 56 <input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" /> 56 57 <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" />58 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" /> 58 59 59 60 <?php echo $form_extra ?> 60 61 <?php if ((isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?> -
wp-admin/edit-page-form.php
27 27 <?php 28 28 wp_nonce_field($nonce_action); 29 29 30 if (isset($mode) && 'bookmarklet' == $mode) {30 if (isset($mode) && 'bookmarklet' == $mode) 31 31 echo '<input type="hidden" name="mode" value="bookmarklet" />'; 32 } 32 if (empty($post->post_type)) $post->post_type = 'page'; 33 33 34 ?> 34 35 <input type="hidden" id="user-id" name="user_ID" value="<?php echo $user_ID ?>" /> 35 36 <input type="hidden" id="hiddenaction" name="action" value='<?php echo $form_action ?>' /> 36 37 <input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" /> 37 38 <?php echo $form_extra ?> 38 <input type="hidden" id="post_type" name="post_type" value=" page" />39 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" /> 39 40 40 41 <script type="text/javascript"> 41 42 // <![CDATA[