Make WordPress Core


Ignore:
Timestamp:
09/27/2012 05:30:34 PM (12 years ago)
Author:
ryan
Message:

Add domain_exists filter. Props jamescollins. fixes #21142

File:
1 edited

Legend:

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

    r21996 r22065  
    10761076function domain_exists($domain, $path, $site_id = 1) {
    10771077    global $wpdb;
    1078     return $wpdb->get_var( $wpdb->prepare("SELECT blog_id FROM $wpdb->blogs WHERE domain = %s AND path = %s AND site_id = %d", $domain, $path, $site_id) );
     1078    $result = $wpdb->get_var( $wpdb->prepare("SELECT blog_id FROM $wpdb->blogs WHERE domain = %s AND path = %s AND site_id = %d", $domain, $path, $site_id) );
     1079    return apply_filters( 'domain_exists', $result, $domain, $path, $site_id );
    10791080}
    10801081
Note: See TracChangeset for help on using the changeset viewer.