diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 87ed753c17..8648a89a0f 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -1912,7 +1912,7 @@ function wp_insert_comment( $commentdata ) { $comment_karma = ! isset( $data['comment_karma'] ) ? 0 : $data['comment_karma']; $comment_approved = ! isset( $data['comment_approved'] ) ? 1 : $data['comment_approved']; $comment_agent = ! isset( $data['comment_agent'] ) ? '' : $data['comment_agent']; - $comment_type = ! isset( $data['comment_type'] ) ? 'comment' : $data['comment_type']; + $comment_type = empty( $data['comment_type'] ) ? 'comment' : $data['comment_type']; $comment_parent = ! isset( $data['comment_parent'] ) ? 0 : $data['comment_parent']; $user_id = ! isset( $data['user_id'] ) ? 0 : $data['user_id']; diff --git a/wp-includes/version.php b/wp-includes/version.php index 5272d1647b..ea0dc24566 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47625'; +$wp_version = '5.5-alpha-47626'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.