[wp-trac] [WordPress Trac] #42299: Change params on get_site_by_path

WordPress Trac noreply at wordpress.org
Sun Feb 11 17:09:00 UTC 2018


#42299: Change params on get_site_by_path
--------------------------------+-------------------------
 Reporter:  spacedmonkey        |       Owner:  jeremyfelt
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:  5.0
Component:  Networks and Sites  |     Version:  4.6
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch           |     Focuses:  multisite
--------------------------------+-------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"42698"]:
 {{{
 #!CommitTicketReference repository="" revision="42698"
 Networks and Sites: In `get_site_by_path()`, use single `domain` and
 `path` parameters if there's only one item to look for.

 This should increase the chances of `WP_Site_Query::get_sites()` hitting
 an existing cache.

 Props spacedmonkey.
 Fixes #42299.
 }}}

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


More information about the wp-trac mailing list