[wp-trac] [WordPress Trac] #40180: Introduce `get_site_by()` function for multisite

WordPress Trac noreply at wordpress.org
Tue Oct 3 04:09:52 UTC 2017


#40180: Introduce `get_site_by()` function for multisite
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  jeremyfelt
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  4.9
Component:  Networks and Sites                   |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch dev-feedback has-unit-     |     Focuses:  multisite
  tests ms-roadmap needs-dev-note                |
-------------------------------------------------+-------------------------
Changes (by jeremyfelt):

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


Comment:

 In [changeset:"41698"]:
 {{{
 #!CommitTicketReference repository="" revision="41698"
 Multisite: Introduce `get_site_by()`.

 `get_site_by()` is a replacement for `get_blog_details()` that uses
 `WP_Site_Query` to retrieve specific sites based on a given field and
 value.

 Props flixos90, spacedmonkey.
 Fixes #40180.
 }}}

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


More information about the wp-trac mailing list