Make WordPress Core

Changeset 27717


Ignore:
Timestamp:
03/25/2014 05:31:37 PM (11 years ago)
Author:
nacin
Message:

Ensure the $path is trailing-slashed in domain_exists().

props ejdanderson, ericmann.
fixes #18209.

File:
1 edited

Legend:

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

    r27161 r27717  
    13001300function domain_exists($domain, $path, $site_id = 1) {
    13011301    global $wpdb;
     1302    $path = trailingslashit( $path );
    13021303    $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) );
     1304
    13031305    /**
    13041306     * Filter whether a blogname is taken.
Note: See TracChangeset for help on using the changeset viewer.