From 5cb7f1c9bc279530e5afef760af84be637de3b0c Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 6 Sep 2008 05:16:56 +0000 Subject: [PATCH] Fix saving as draft, see #7672 git-svn-id: https://develop.svn.wordpress.org/trunk@8832 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/post.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-admin/post.php b/wp-admin/post.php index 7afe8fc8e5..ceef82aca4 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -87,11 +87,12 @@ case 'post-quickpress-save-cont': check_admin_referer('add-post'); if ( 'post-quickpress-publish' == $action ) - + $_POST['publish'] = 'publish'; // tell write_post() to publish + + 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'); - - $_POST['publish'] = 'publish'; // tell write_post() to publish + } if ( !empty( $_POST['quickpress_post_ID'] ) ) { $_POST['post_ID'] = (int) $_POST['quickpress_post_ID'];