Make WordPress Core

Ticket #20589: 20589.diff

File 20589.diff, 557 bytes (added by jeremyfelt, 11 years ago)
  • src/wp-includes/ms-functions.php

     
    12891289 */
    12901290function domain_exists($domain, $path, $site_id = 1) {
    12911291        global $wpdb;
     1292
     1293        $path = trailingslashit( $path );
     1294
    12921295        $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) );
    12931296        /**
    12941297         * Filter whether a blogname is taken.