Skip to content

Commit

Permalink
In comment_form(), pass the $post_id to comments_open(). props insert…
Browse files Browse the repository at this point in the history
…visionhere. fixes #20572.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Apr 30, 2012
1 parent 6d87a96 commit 5ab06c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-includes/comment-template.php
Expand Up @@ -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>
Expand Down

0 comments on commit 5ab06c3

Please sign in to comment.