From 3189d79f4638d04e21ccdca47a3d1ce19bfa471a Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 16 Jan 2014 20:24:13 +0000 Subject: [PATCH] Don't let Quick Draft ignore default comment_status and ping_status. props kovshenin. fixes #26722. Built from https://develop.svn.wordpress.org/trunk@26959 git-svn-id: http://core.svn.wordpress.org/trunk@26838 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/post.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-admin/post.php b/wp-admin/post.php index 09a31ae4db..a4f5cc7408 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -117,6 +117,10 @@ case 'post-quickdraft-save': $post = get_post( $_REQUEST['post_ID'] ); check_admin_referer( 'add-' . $post->post_type ); + + $_POST['comment_status'] = get_option( 'default_comment_status' ); + $_POST['ping_status'] = get_option( 'default_ping_status' ); + edit_post(); // output the quickdraft dashboard widget require_once(ABSPATH . 'wp-admin/includes/dashboard.php');