WordPress.org

Make WordPress Core

Ticket #995: tb-pb-whitelist.diff

File tb-pb-whitelist.diff, 705 bytes (added by anonymousbugger, 10 years ago)
  • comment-functions.php

     
    757759                        $domain = $uri['host']; 
    758760                        if ( $wpdb->get_var("SELECT link_id FROM $wpdb->links WHERE link_url LIKE ('%$domain%') LIMIT 1") ) 
    759761                                return true; 
     762                        else 
     763                                return false; 
    760764                } elseif( $author != '' && $email != '' ) { 
    761765                        $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' "); 
    762766                        if ( 1 == $ok_to_comment && false === strpos( $email, get_settings('moderation_keys')) )