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
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user