Don't let Quick Draft ignore default comment_status and ping_status.
props kovshenin. fixes #26722. Built from https://develop.svn.wordpress.org/trunk@26959 git-svn-id: http://core.svn.wordpress.org/trunk@26838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5d92ed5632
commit
3189d79f46
|
@ -117,6 +117,10 @@ case 'post-quickdraft-save':
|
||||||
|
|
||||||
$post = get_post( $_REQUEST['post_ID'] );
|
$post = get_post( $_REQUEST['post_ID'] );
|
||||||
check_admin_referer( 'add-' . $post->post_type );
|
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();
|
edit_post();
|
||||||
// output the quickdraft dashboard widget
|
// output the quickdraft dashboard widget
|
||||||
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
|
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
|
||||||
|
|
Loading…
Reference in New Issue