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:
parent
8d01fc1f9a
commit
a5c6da9a2e
|
@ -550,7 +550,7 @@ function wp_dashboard_quick_press() {
|
||||||
|
|
||||||
<p class="submit">
|
<p class="submit">
|
||||||
<input type="hidden" name="action" id="quickpost-action" value="post-quickpress-save" />
|
<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" />
|
<input type="hidden" name="post_type" value="post" />
|
||||||
<?php wp_nonce_field('add-post'); ?>
|
<?php wp_nonce_field('add-post'); ?>
|
||||||
<?php submit_button( __( 'Save Draft' ), 'button', 'save', false, array( 'id' => 'save-post', 'tabindex'=> 4 ) ); ?>
|
<?php submit_button( __( 'Save Draft' ), 'button', 'save', false, array( 'id' => 'save-post', 'tabindex'=> 4 ) ); ?>
|
||||||
|
|
|
@ -102,10 +102,6 @@ case 'post-quickpress-save':
|
||||||
if ( 'post-quickpress-publish' == $action || 'post-quickpress-save' == $action ) {
|
if ( 'post-quickpress-publish' == $action || 'post-quickpress-save' == $action ) {
|
||||||
$_POST['comment_status'] = get_option('default_comment_status');
|
$_POST['comment_status'] = get_option('default_comment_status');
|
||||||
$_POST['ping_status'] = get_option('default_ping_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();
|
$post_id = edit_post();
|
||||||
} else {
|
} else {
|
||||||
$post_id = 'postajaxpost' == $action ? edit_post() : write_post();
|
$post_id = 'postajaxpost' == $action ? edit_post() : write_post();
|
||||||
|
|
Loading…
Reference in New Issue