comment_approved can be zero, so check with isset instead of empty. fixes #7446
git-svn-id: https://develop.svn.wordpress.org/trunk@8622 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5f78702356
commit
3d1b545642
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user