Make WordPress Core

Ticket #26722: 26722.diff

File 26722.diff, 556 bytes (added by kovshenin, 11 years ago)
  • src/wp-admin/post.php

     
    117117
    118118        $post = get_post( $_REQUEST['post_ID'] );
    119119        check_admin_referer( 'add-' . $post->post_type );
     120
     121        $_POST['comment_status'] = get_option( 'default_comment_status' );
     122        $_POST['ping_status'] = get_option( 'default_ping_status' );
     123
    120124        edit_post();
    121125        // output the quickdraft dashboard widget
    122126        require_once(ABSPATH . 'wp-admin/includes/dashboard.php');