From 19e9de33670c0ad4a1eba8cbd15dd24473c404e2 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Wed, 4 Oct 2017 16:11:51 +0000 Subject: [PATCH] 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 --- wp-includes/ms-functions.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index ea2fec15c8..7fb628cd72 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index ff68437a15..210b590881 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.