Ticket #39650: 39650.2.patch
| File 39650.2.patch, 596 bytes (added by , 9 years ago) |
|---|
-
wp-includes/comment-template.php
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 ( 'draft' === get_post_status( $post ) ) { 2170 return; 2171 } 2172 2168 2173 if ( null === $post_id ) 2169 2174 $post_id = get_the_ID(); 2170 2175