From 97dcf902dbdb4436c31ed4d57bb76723067b1d14 Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 24 Nov 2011 16:06:17 +0000 Subject: [PATCH] Revert [19372] for 3.3. see #13473. git-svn-id: http://svn.automattic.com/wordpress/trunk@19448 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 5de0a49fae..831c7025ed 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -96,10 +96,10 @@ function _wp_translate_postdata( $update = false, $post_data = null ) { $post_data['post_status'] = $previous_status; if (!isset( $post_data['comment_status'] )) - $post_data['comment_status'] = post_type_supports( $post_data['post_type'], 'comments' ) ? get_option( 'default_comment_status' ) : 'closed'; + $post_data['comment_status'] = 'closed'; if (!isset( $post_data['ping_status'] )) - $post_data['ping_status'] = post_type_supports( $post_data['post_type'], 'trackbacks' ) ? get_option( 'default_ping_status' ) : 'closed'; + $post_data['ping_status'] = 'closed'; foreach ( array('aa', 'mm', 'jj', 'hh', 'mn') as $timeunit ) { if ( !empty( $post_data['hidden_' . $timeunit] ) && $post_data['hidden_' . $timeunit] != $post_data[$timeunit] ) {