Make WordPress Core

Changeset 2562


Ignore:
Timestamp:
04/20/2005 10:01:24 PM (20 years ago)
Author:
matt
Message:

Whitelist from own domain. http://mosquito.wordpress.org/view.php?id=999

File:
1 edited

Legend:

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

    r2546 r2562  
    653653            $uri = parse_url($url);
    654654            $domain = $uri['host'];
    655             if ( $wpdb->get_var("SELECT link_id FROM $wpdb->links WHERE link_url LIKE ('%$domain%') LIMIT 1") )
     655            $uri = parse_url( get_option('home') );
     656            $home_domain = $uri['host'];
     657            if ( $wpdb->get_var("SELECT link_id FROM $wpdb->links WHERE link_url LIKE ('%$domain%') LIMIT 1") || $domain == $home_domain )
    656658                return true;
    657659            else
Note: See TracChangeset for help on using the changeset viewer.