Ticket #49236: 49236.3.patch
File 49236.3.patch, 1.2 KB (added by , 5 years ago) |
---|
-
src/wp-includes/class-wp-comment-query.php
741 741 742 742 case 'comment': 743 743 case 'comments': 744 $comment_types[ $operator ][] = "''"; 744 745 $comment_types[ $operator ][] = "'comment'"; 745 746 break; 746 747 -
src/wp-includes/comment.php
1902 1902 $comment_karma = ! isset( $data['comment_karma'] ) ? 0 : $data['comment_karma']; 1903 1903 $comment_approved = ! isset( $data['comment_approved'] ) ? 1 : $data['comment_approved']; 1904 1904 $comment_agent = ! isset( $data['comment_agent'] ) ? '' : $data['comment_agent']; 1905 $comment_type = ! isset( $data['comment_type'] ) ? 'comment' : $data['comment_type'];1905 $comment_type = empty( $data['comment_type'] ) ? 'comment' : $data['comment_type']; 1906 1906 $comment_parent = ! isset( $data['comment_parent'] ) ? 0 : $data['comment_parent']; 1907 1907 1908 1908 $user_id = ! isset( $data['user_id'] ) ? 0 : $data['user_id'];