Move from quickpress_post_ID to post_ID. fixes #19095.

git-svn-id: https://develop.svn.wordpress.org/trunk@19093 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-10-31 17:08:36 +00:00
parent 8d01fc1f9a
commit a5c6da9a2e
2 changed files with 2 additions and 6 deletions

View File

@ -550,7 +550,7 @@ function wp_dashboard_quick_press() {
<p class="submit">
<input type="hidden" name="action" id="quickpost-action" value="post-quickpress-save" />
<input type="hidden" name="quickpress_post_ID" value="<?php echo $post_ID; ?>" />
<input type="hidden" name="post_ID" value="<?php echo $post_ID; ?>" />
<input type="hidden" name="post_type" value="post" />
<?php wp_nonce_field('add-post'); ?>
<?php submit_button( __( 'Save Draft' ), 'button', 'save', false, array( 'id' => 'save-post', 'tabindex'=> 4 ) ); ?>

View File

@ -20,7 +20,7 @@ if ( isset( $_GET['post'] ) )
$post_id = $post_ID = (int) $_GET['post'];
elseif ( isset( $_POST['post_ID'] ) )
$post_id = $post_ID = (int) $_POST['post_ID'];
else
else
$post_id = $post_ID = 0;
$post = $post_type = $post_type_object = null;
@ -102,10 +102,6 @@ case 'post-quickpress-save':
if ( 'post-quickpress-publish' == $action || 'post-quickpress-save' == $action ) {
$_POST['comment_status'] = get_option('default_comment_status');
$_POST['ping_status'] = get_option('default_ping_status');
}
if ( !empty( $_POST['quickpress_post_ID'] ) ) {
$_POST['post_ID'] = (int) $_POST['quickpress_post_ID'];
$post_id = edit_post();
} else {
$post_id = 'postajaxpost' == $action ? edit_post() : write_post();