Set comment and ping status when QuickPressing. Fixes #7672 props ShaneF.

git-svn-id: http://svn.automattic.com/wordpress/trunk@8797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-09-03 07:13:51 +00:00
parent 9b02e29a7b
commit 893f96bf10
1 changed files with 4 additions and 0 deletions

View File

@ -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'] ) ) {