In comment_form(), pass the $post_id to comments_open(). props insertvisionhere. fixes #20572.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-04-30 01:47:22 +00:00
parent 6d87a96c85
commit 5ab06c336e
1 changed files with 1 additions and 1 deletions

View File

@ -1549,7 +1549,7 @@ function comment_form( $args = array(), $post_id = null ) {
$args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) );
?>
<?php if ( comments_open() ) : ?>
<?php if ( comments_open( $post_id ) ) : ?>
<?php do_action( 'comment_form_before' ); ?>
<div id="respond">
<h3 id="reply-title"><?php comment_form_title( $args['title_reply'], $args['title_reply_to'] ); ?> <small><?php cancel_comment_reply_link( $args['cancel_reply_link'] ); ?></small></h3>