mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +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. Props danieltj, spacedmonkey. Fixes #42072. Built from https://develop.svn.wordpress.org/trunk@41736 git-svn-id: http://core.svn.wordpress.org/trunk@41570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
090dfae53e
commit
19e9de3367
@ -342,6 +342,7 @@ function get_blog_id_from_url( $domain, $path = '/' ) {
|
||||
'domain' => $domain,
|
||||
'path' => $path,
|
||||
'fields' => 'ids',
|
||||
'number' => 1,
|
||||
);
|
||||
$result = get_sites( $args );
|
||||
$id = array_shift( $result );
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9-alpha-41735';
|
||||
$wp_version = '4.9-alpha-41736';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user