WordPress.org

Make WordPress Core

Ticket #13473: 13473.patch

File 13473.patch, 771 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-admin/includes/post.php

     
    9696                $post_data['post_status'] = $previous_status; 
    9797 
    9898        if (!isset( $post_data['comment_status'] )) 
    99                 $post_data['comment_status'] = 'closed'; 
     99                $post_data['comment_status'] = get_option('default_comment_status'); 
    100100 
    101101        if (!isset( $post_data['ping_status'] )) 
    102                 $post_data['ping_status'] = 'closed'; 
     102                $post_data['ping_status'] = get_option('default_ping_status'); 
    103103 
    104104        foreach ( array('aa', 'mm', 'jj', 'hh', 'mn') as $timeunit ) { 
    105105                if ( !empty( $post_data['hidden_' . $timeunit] ) && $post_data['hidden_' . $timeunit] != $post_data[$timeunit] ) {