| 1 | Index: comment-functions.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- comment-functions.php (revision 2385) |
|---|
| 4 | +++ comment-functions.php (working copy) |
|---|
| 5 | @@ -757,6 +759,8 @@ |
|---|
| 6 | $domain = $uri['host']; |
|---|
| 7 | if ( $wpdb->get_var("SELECT link_id FROM $wpdb->links WHERE link_url LIKE ('%$domain%') LIMIT 1") ) |
|---|
| 8 | return true; |
|---|
| 9 | + else |
|---|
| 10 | + return false; |
|---|
| 11 | } elseif( $author != '' && $email != '' ) { |
|---|
| 12 | $ok_to_comment = $wpdb->get_var("SELECT comment_approved FROM $wpdb->comments WHERE comment_author = '$author' AND comment_author_email = '$email' and comment_approved = '1' "); |
|---|
| 13 | if ( 1 == $ok_to_comment && false === strpos( $email, get_settings('moderation_keys')) ) |
|---|