From 09e15ecf6f960a877354cba133be046b27bd83ed Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 3 Sep 2008 07:13:51 +0000 Subject: [PATCH] Set comment and ping status when QuickPressing. Fixes #7672 props ShaneF. git-svn-id: https://develop.svn.wordpress.org/trunk@8797 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/post.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-admin/post.php b/wp-admin/post.php index 3ee28fa194..208614eb35 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -83,6 +83,10 @@ case 'post-quickpress-save-cont': check_admin_referer('add-post'); if ( 'post-quickpress-publish' == $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'] ) ) {