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

WordPress Trac noreply at wordpress.org
Wed Oct 4 16:10:42 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:  reviewing => closed
 * resolution:   => fixed


Comment:

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

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


More information about the wp-trac mailing list