Make WordPress Core

Changeset 8622


Ignore:
Timestamp:
08/12/2008 04:23:47 PM (16 years ago)
Author:
ryan
Message:

comment_approved can be zero, so check with isset instead of empty. fixes #7446

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r8572 r8622  
    861861    $comment_date_gmt = get_gmt_from_date($comment_date);
    862862
    863     if ( empty($comment_approved) )
     863    if ( !isset($comment_approved) )
    864864        $comment_approved = 1;
    865865    else if ( 'hold' == $comment_approved )
Note: See TracChangeset for help on using the changeset viewer.