Make WordPress Core


Ignore:
Timestamp:
05/04/2010 07:31:24 PM (14 years ago)
Author:
wpmuguru
Message:

add default comment status setting for pages, props messenlehner, see #12991

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r14447 r14448  
    21602160            $comment_status = 'closed';
    21612161        else
    2162             $comment_status = get_option('default_comment_status');
     2162            if ( 'page' == $post_type ) {
     2163                $comment_status = get_option( 'default_comment_status_page' );
     2164            } else {
     2165                $comment_status = get_option( 'default_comment_status' );
     2166            }
    21632167    }
    21642168    if ( empty($ping_status) )
Note: See TracChangeset for help on using the changeset viewer.