Make WordPress Core

Changeset 41738


Ignore:
Timestamp:
10/04/2017 04:25:07 PM (9 years ago)
Author:
jeremyfelt
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-functions.php

    r41736 r41738  
    13631363                'path'       => $path,
    13641364                'fields'     => 'ids',
     1365                'number'     => 1,
    13651366        );
    13661367        $result = get_sites( $args );
Note: See TracChangeset for help on using the changeset viewer.