Ticket #42072: 42072.3.diff
File 42072.3.diff, 710 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/ms-functions.php
1356 1356 */ 1357 1357 function domain_exists( $domain, $path, $network_id = 1 ) { 1358 1358 $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 ); 1361 1362 if ( $result ) { 1363 $result = $result->id; 1364 } 1367 1365 1368 1366 /** 1369 1367 * Filters whether a site name is taken.