mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 21:28:02 +01:00
Fix saving as draft, see #7672
git-svn-id: https://develop.svn.wordpress.org/trunk@8832 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7139c3eef8
commit
5cb7f1c9bc
@ -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…
x
Reference in New Issue
Block a user