diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 87a728bb3..c97268caf 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -860,7 +860,7 @@ function wp_update_comment($commentarr) { $comment_date_gmt = get_gmt_from_date($comment_date); - if ( empty($comment_approved) ) + if ( !isset($comment_approved) ) $comment_approved = 1; else if ( 'hold' == $comment_approved ) $comment_approved = 0;