[wp-trac] [WordPress Trac] #42072: Add limit 1 to domain_exists

WordPress Trac noreply at wordpress.org
Wed Oct 4 16:25:10 UTC 2017


#42072: Add limit 1 to domain_exists
--------------------------------------+-------------------------
 Reporter:  spacedmonkey              |       Owner:  jeremyfelt
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  4.9
Component:  Networks and Sites        |     Version:  4.6
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:  multisite
--------------------------------------+-------------------------
Changes (by jeremyfelt):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41738"]:
 {{{
 #!CommitTicketReference repository="" revision="41738"
 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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42072#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list