mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-25 17:51:27 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@41738 git-svn-id: http://core.svn.wordpress.org/trunk@41572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fe29c9c881
commit
f646f0aa47
@ -1362,6 +1362,7 @@ function domain_exists( $domain, $path, $network_id = 1 ) {
|
|||||||
'domain' => $domain,
|
'domain' => $domain,
|
||||||
'path' => $path,
|
'path' => $path,
|
||||||
'fields' => 'ids',
|
'fields' => 'ids',
|
||||||
|
'number' => 1,
|
||||||
);
|
);
|
||||||
$result = get_sites( $args );
|
$result = get_sites( $args );
|
||||||
$result = array_shift( $result );
|
$result = array_shift( $result );
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-41737';
|
$wp_version = '4.9-alpha-41738';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user