Make WordPress Core

Ticket #39650: 39650.patch

File 39650.patch, 529 bytes (added by sagarprajapati, 9 years ago)
  • wp-includes/comment-template.php

     
    21652165 * @param int|WP_Post $post_id Post ID or WP_Post object to generate the form for. Default current post.
    21662166 */
    21672167function comment_form( $args = array(), $post_id = null ) {
     2168        if ( 'draft' == get_post_status( $post ) )
     2169                return;
     2170       
    21682171        if ( null === $post_id )
    21692172                $post_id = get_the_ID();
    21702173