From 5463205114116ea63dcaab789546453ffefb5006 Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 15 May 2010 04:56:56 +0000 Subject: [PATCH] Remove default_comment_status_pages setting. Reverts [14451], [14448] for 3.0. see #12991. git-svn-id: http://svn.automattic.com/wordpress/trunk@14650 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 6 +----- wp-admin/includes/schema.php | 1 - wp-admin/options-discussion.php | 6 ------ wp-admin/options.php | 2 +- wp-includes/post.php | 6 +----- 5 files changed, 3 insertions(+), 18 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index a7c07aae4..af4242d47 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -385,11 +385,7 @@ function get_default_post_to_edit( $post_type = 'post', $create_in_db = false ) $post->post_status = 'draft'; $post->to_ping = ''; $post->pinged = ''; - if ( 'page' == $post_type ) { - $post->comment_status = get_option( 'default_comment_status_page' ); - } else { - $post->comment_status = get_option( 'default_comment_status' ); - } + $post->comment_status = get_option( 'default_comment_status' ); $post->ping_status = get_option( 'default_ping_status' ); $post->post_pingback = get_option( 'default_pingback_flag' ); $post->post_category = get_option( 'default_category' ); diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index 098b4ff29..0218bffd8 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -215,7 +215,6 @@ function populate_options() { 'mailserver_port' => 110, 'default_category' => 1, 'default_comment_status' => 'open', - 'default_comment_status_page' => 'open', 'default_ping_status' => 'open', 'default_pingback_flag' => 1, 'default_post_edit_rows' => 10, diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php index d9457bbbb..8802f7631 100644 --- a/wp-admin/options-discussion.php +++ b/wp-admin/options-discussion.php @@ -42,12 +42,6 @@ include('./admin-header.php');
-
- -
- diff --git a/wp-admin/options.php b/wp-admin/options.php index 0a4e8817e..15f489d3e 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -56,7 +56,7 @@ if ( is_multisite() && !is_super_admin() && 'update' != $action ) $whitelist_options = array( 'general' => array( 'blogname', 'blogdescription', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'timezone_string' ), - 'discussion' => array( 'default_pingback_flag', 'default_ping_status', 'default_comment_status_page', 'default_comment_status', 'comments_notify', 'moderation_notify', 'comment_moderation', 'require_name_email', 'comment_whitelist', 'comment_max_links', 'moderation_keys', 'blacklist_keys', 'show_avatars', 'avatar_rating', 'avatar_default', 'close_comments_for_old_posts', 'close_comments_days_old', 'thread_comments', 'thread_comments_depth', 'page_comments', 'comments_per_page', 'default_comments_page', 'comment_order', 'comment_registration' ), + 'discussion' => array( 'default_pingback_flag', 'default_ping_status', 'default_comment_status', 'comments_notify', 'moderation_notify', 'comment_moderation', 'require_name_email', 'comment_whitelist', 'comment_max_links', 'moderation_keys', 'blacklist_keys', 'show_avatars', 'avatar_rating', 'avatar_default', 'close_comments_for_old_posts', 'close_comments_days_old', 'thread_comments', 'thread_comments_depth', 'page_comments', 'comments_per_page', 'default_comments_page', 'comment_order', 'comment_registration' ), 'media' => array( 'thumbnail_size_w', 'thumbnail_size_h', 'thumbnail_crop', 'medium_size_w', 'medium_size_h', 'large_size_w', 'large_size_h', 'image_default_size', 'image_default_align', 'image_default_link_type', 'embed_autourls', 'embed_size_w', 'embed_size_h' ), 'privacy' => array( 'blog_public' ), 'reading' => array( 'posts_per_page', 'posts_per_rss', 'rss_use_excerpt', 'blog_charset', 'show_on_front', 'page_on_front', 'page_for_posts' ), diff --git a/wp-includes/post.php b/wp-includes/post.php index 820a624fe..e34f0a326 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2252,11 +2252,7 @@ function wp_insert_post($postarr = array(), $wp_error = false) { if ( $update ) $comment_status = 'closed'; else - if ( 'page' == $post_type ) { - $comment_status = get_option( 'default_comment_status_page' ); - } else { - $comment_status = get_option( 'default_comment_status' ); - } + $comment_status = get_option('default_comment_status'); } if ( empty($ping_status) ) $ping_status = get_option('default_ping_status');