diff --git src/wp-includes/comment-template.php src/wp-includes/comment-template.php
index e97229f..2ba9403 100644
|
|
|
function comment_form( $args = array(), $post_id = null ) { |
| 2168 | 2168 | if ( null === $post_id ) |
| 2169 | 2169 | $post_id = get_the_ID(); |
| 2170 | 2170 | |
| | 2171 | //Don't show comment form if post status is not publish. |
| | 2172 | if( 'publish' !== get_post_status( $post_id ) ) |
| | 2173 | return; |
| | 2174 | |
| 2171 | 2175 | // Exit the function when comments for the post are closed. |
| 2172 | 2176 | if ( ! comments_open( $post_id ) ) { |
| 2173 | 2177 | /** |