Ticket #995: tb-pb-whitelist.diff
| File tb-pb-whitelist.diff, 705 bytes (added by anonymousbugger, 7 years ago) |
|---|
-
comment-functions.php
757 759 $domain = $uri['host']; 758 760 if ( $wpdb->get_var("SELECT link_id FROM $wpdb->links WHERE link_url LIKE ('%$domain%') LIMIT 1") ) 759 761 return true; 762 else 763 return false; 760 764 } elseif( $author != '' && $email != '' ) { 761 765 $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' "); 762 766 if ( 1 == $ok_to_comment && false === strpos( $email, get_settings('moderation_keys')) )
