Move from quickpress_post_ID to post_ID. fixes #19095.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
aa6eb9729a
commit
c2064f9976
|
@ -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 ) ); ?>
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue