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
This commit is contained in:
Peter Westwood 2008-09-03 07:13:51 +00:00
parent 9045798e95
commit 09e15ecf6f
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'] ) ) {