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

git-svn-id: https://develop.svn.wordpress.org/trunk@20641 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-04-30 01:47:22 +00:00
parent 199f9adec2
commit 20c3b25c7e
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>