Make WordPress Core

Ticket #42072: 42072.2.diff

File 42072.2.diff, 658 bytes (added by jeremyfelt, 6 years ago)
  • src/wp-includes/ms-functions.php

     
    13561356 */
    13571357function domain_exists( $domain, $path, $network_id = 1 ) {
    13581358        $path = trailingslashit( $path );
    1359         $args = array(
    1360                 'network_id' => $network_id,
    1361                 'domain'     => $domain,
    1362                 'path'       => $path,
    1363                 'fields'     => 'ids',
    1364         );
    1365         $result = get_sites( $args );
    1366         $result = array_shift( $result );
     1359
     1360        $result = get_site_by( 'url', $domain . $path, $network_id );
    13671361
    13681362        /**
    13691363         * Filters whether a site name is taken.