Ticket #19095: 19095.diff
File 19095.diff, 1.6 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/dashboard.php
550 550 551 551 <p class="submit"> 552 552 <input type="hidden" name="action" id="quickpost-action" value="post-quickpress-save" /> 553 <input type="hidden" name=" quickpress_post_ID" value="<?php echo $post_ID; ?>" />553 <input type="hidden" name="post_ID" value="<?php echo $post_ID; ?>" /> 554 554 <input type="hidden" name="post_type" value="post" /> 555 555 <?php wp_nonce_field('add-post'); ?> 556 556 <?php submit_button( __( 'Save Draft' ), 'button', 'save', false, array( 'id' => 'save-post', 'tabindex'=> 4 ) ); ?> -
wp-admin/post.php
20 20 $post_id = $post_ID = (int) $_GET['post']; 21 21 elseif ( isset( $_POST['post_ID'] ) ) 22 22 $post_id = $post_ID = (int) $_POST['post_ID']; 23 23 else 24 24 $post_id = $post_ID = 0; 25 25 26 26 $post = $post_type = $post_type_object = null; … … 102 102 if ( 'post-quickpress-publish' == $action || 'post-quickpress-save' == $action ) { 103 103 $_POST['comment_status'] = get_option('default_comment_status'); 104 104 $_POST['ping_status'] = get_option('default_ping_status'); 105 }106 107 if ( !empty( $_POST['quickpress_post_ID'] ) ) {108 $_POST['post_ID'] = (int) $_POST['quickpress_post_ID'];109 105 $post_id = edit_post(); 110 106 } else { 111 107 $post_id = 'postajaxpost' == $action ? edit_post() : write_post();