Ticket #34956: 34956.2.diff
File 34956.2.diff, 1.6 KB (added by , 9 years ago) |
---|
-
src/wp-includes/comment.php
1473 1473 * @type int $comment_karma The karma of the comment. Default 0. 1474 1474 * @type int $comment_parent ID of this comment's parent, if any. Default 0. 1475 1475 * @type int $comment_post_ID ID of the post that relates to the comment, if any. 1476 * Default empty.1476 * Default 0. 1477 1477 * @type string $comment_type Comment type. Default empty. 1478 1478 * @type array $comment_meta Optional. Array of key/value pairs to be stored in commentmeta for the 1479 1479 * new comment. … … 1493 1493 $comment_date = ! isset( $data['comment_date'] ) ? current_time( 'mysql' ) : $data['comment_date']; 1494 1494 $comment_date_gmt = ! isset( $data['comment_date_gmt'] ) ? get_gmt_from_date( $comment_date ) : $data['comment_date_gmt']; 1495 1495 1496 $comment_post_ID = ! isset( $data['comment_post_ID'] ) ? '': $data['comment_post_ID'];1496 $comment_post_ID = ! isset( $data['comment_post_ID'] ) ? 0 : $data['comment_post_ID']; 1497 1497 $comment_content = ! isset( $data['comment_content'] ) ? '' : $data['comment_content']; 1498 1498 $comment_karma = ! isset( $data['comment_karma'] ) ? 0 : $data['comment_karma']; 1499 1499 $comment_approved = ! isset( $data['comment_approved'] ) ? 1 : $data['comment_approved'];