Make WordPress Core

Ticket #34956: 34956.diff

File 34956.diff, 927 bytes (added by MikeHansenMe, 9 years ago)
  • src/wp-includes/comment.php

     
    14961496        $comment_date     = ! isset( $data['comment_date'] )     ? current_time( 'mysql' )            : $data['comment_date'];
    14971497        $comment_date_gmt = ! isset( $data['comment_date_gmt'] ) ? get_gmt_from_date( $comment_date ) : $data['comment_date_gmt'];
    14981498
    1499         $comment_post_ID  = ! isset( $data['comment_post_ID'] )  ? '' : $data['comment_post_ID'];
     1499        $comment_post_ID  = ! isset( $data['comment_post_ID'] )  ? 0 : $data['comment_post_ID'];
    15001500        $comment_content  = ! isset( $data['comment_content'] )  ? '' : $data['comment_content'];
    15011501        $comment_karma    = ! isset( $data['comment_karma'] )    ? 0  : $data['comment_karma'];
    15021502        $comment_approved = ! isset( $data['comment_approved'] ) ? 1  : $data['comment_approved'];