WordPress.org

Make WordPress Core

Ticket #7672: 8795.post.php.patch

File 8795.post.php.patch, 503 bytes (added by ShaneF, 13 years ago)
  • post.php

     
    8383        check_admin_referer('add-post');
    8484
    8585        if ( 'post-quickpress-publish' == $action )
     86       
     87                $_POST['comment_status'] = get_option('default_comment_status');
     88                $_POST['ping_status'] = get_option('default_ping_status');
     89               
    8690                $_POST['publish'] = 'publish'; // tell write_post() to publish
    8791
    8892        if ( !empty( $_POST['quickpress_post_ID'] ) ) {