Ticket #13473: 13473.diff
File 13473.diff, 921 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/post.php
96 96 $post_data['post_status'] = $previous_status; 97 97 98 98 if (!isset( $post_data['comment_status'] )) 99 $post_data['comment_status'] = 'closed';99 $post_data['comment_status'] = post_type_supports( $post_data['post_type'], 'comments' ) ? get_option( 'default_comment_status' ) : 'closed'; 100 100 101 101 if (!isset( $post_data['ping_status'] )) 102 $post_data['ping_status'] = 'closed';102 $post_data['ping_status'] = post_type_supports( $post_data['post_type'], 'trackbacks' ) ? get_option( 'default_ping_status' ) : 'closed'; 103 103 104 104 foreach ( array('aa', 'mm', 'jj', 'hh', 'mn') as $timeunit ) { 105 105 if ( !empty( $post_data['hidden_' . $timeunit] ) && $post_data['hidden_' . $timeunit] != $post_data[$timeunit] ) {