Fix saving as draft, see #7672
git-svn-id: http://svn.automattic.com/wordpress/trunk@8832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
411e1083ed
commit
84ffc72522
|
@ -87,11 +87,12 @@ case 'post-quickpress-save-cont':
|
|||
check_admin_referer('add-post');
|
||||
|
||||
if ( 'post-quickpress-publish' == $action )
|
||||
$_POST['publish'] = 'publish'; // tell write_post() to publish
|
||||
|
||||
if ( 'post-quickpress-publish' == $action || 'post-quickpress-save' == $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'] ) ) {
|
||||
$_POST['post_ID'] = (int) $_POST['quickpress_post_ID'];
|
||||
|
|
Loading…
Reference in New Issue