Multisite: Only query for one site in domain_exists()
.
`get_sites()` queries for a maximum of 100 records by default. In `domain_exists()`, we only use one. A previous commit, [41736], has this same commit message but applies to `get_blog_id_from_url()` and #42073 instead. Props danieltj, spacedmonkey. Fixes #42072. git-svn-id: https://develop.svn.wordpress.org/trunk@41738 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dd92141f54
commit
e7f4d926c9
@ -1362,6 +1362,7 @@ function domain_exists( $domain, $path, $network_id = 1 ) {
|
||||
'domain' => $domain,
|
||||
'path' => $path,
|
||||
'fields' => 'ids',
|
||||
'number' => 1,
|
||||
);
|
||||
$result = get_sites( $args );
|
||||
$result = array_shift( $result );
|
||||
|
Loading…
Reference in New Issue
Block a user