Don't let Quick Draft ignore default comment_status and ping_status.

props kovshenin.
fixes #26722.


git-svn-id: https://develop.svn.wordpress.org/trunk@26959 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-01-16 20:23:21 +00:00
parent 57a26d2e31
commit d375be7148

View File

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