mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Don't let Quick Draft ignore default comment_status and ping_status.
props kovshenin. fixes #26722. git-svn-id: https://develop.svn.wordpress.org/trunk@26959 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
57a26d2e31
commit
d375be7148
@ -117,6 +117,10 @@ case 'post-quickdraft-save':
|
||||
|
||||
$post = get_post( $_REQUEST['post_ID'] );
|
||||
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();
|
||||
// output the quickdraft dashboard widget
|
||||
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user