Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

In comment_form(), pass the $post_id to comments_open(). props insert…

…visionhere. fixes #20572.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 5ab06c336e8f484c6ecdb36ff577540c85d0a2de 1 parent 6d87a96
nacin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  wp-includes/comment-template.php
View
2  wp-includes/comment-template.php
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.