Skip to content

Commit

Permalink
Add domain_exists filter. Props jamescollins. fixes #21142
Browse files Browse the repository at this point in the history
git-svn-id: http://core.svn.wordpress.org/trunk@22065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
Ryan Boren committed Sep 27, 2012
1 parent c224c2f commit 115d539
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-includes/ms-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,8 @@ function newuser_notify_siteadmin( $user_id ) {
*/
function domain_exists($domain, $path, $site_id = 1) {
global $wpdb;
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) );
$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) );
return apply_filters( 'domain_exists', $result, $domain, $path, $site_id );
}

/**
Expand Down

0 comments on commit 115d539

Please sign in to comment.