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

WordPress Trac noreply at wordpress.org
Mon Aug 14 14:36:47 UTC 2017


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

Comment (by spacedmonkey):

 I really like 40180.3.diff. My problem with this function as been passing
 an array to it. It makes this function stick out compared to get_term_by.
 By the param url is a better work around for this.

 Do we have a use for it core other than `get_blog_details` ? We replaced
 nearly all calls to the blogs table directly a while ago..

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


More information about the wp-trac mailing list