From e68d5f07b4e96d275e16f69d6bab5ee2d723c0c0 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 12 Aug 2008 16:23:47 +0000 Subject: [PATCH] comment_approved can be zero, so check with isset instead of empty. fixes #7446 git-svn-id: http://svn.automattic.com/wordpress/trunk@8622 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;