diff --git src/wp-includes/comment-template.php src/wp-includes/comment-template.php
index e97229f..37e5acb 100644
|
|
|
function wp_list_comments( $args = array(), $comments = null ) { |
| 2165 | 2165 | * @param int|WP_Post $post_id Post ID or WP_Post object to generate the form for. Default current post. |
| 2166 | 2166 | */ |
| 2167 | 2167 | function comment_form( $args = array(), $post_id = null ) { |
| | 2168 | //Don't show comment form if post status is not publish. |
| | 2169 | if( 'publish' !== get_post_status( $post ) ) |
| | 2170 | return; |
| | 2171 | |
| 2168 | 2172 | if ( null === $post_id ) |
| 2169 | 2173 | $post_id = get_the_ID(); |
| 2170 | 2174 | |