Fix saving as draft, see #7672

git-svn-id: https://develop.svn.wordpress.org/trunk@8832 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-09-06 05:16:56 +00:00
parent 7139c3eef8
commit 5cb7f1c9bc
1 changed files with 4 additions and 3 deletions

View File

@ -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'];