[wp-trac] [WordPress Trac] #40228: Use get_sites in get_blog_details

WordPress Trac noreply at wordpress.org
Thu Mar 23 14:22:33 UTC 2017


#40228: Use get_sites in get_blog_details
--------------------------------+------------------------------
 Reporter:  spacedmonkey        |       Owner:  flixos90
     Type:  enhancement         |      Status:  assigned
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:  3.0
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  multisite
--------------------------------+------------------------------

Comment (by spacedmonkey):

 I like the idea of get_site_by however it is not a full replacement for
 all the params that get_blog_details. get_term_by only supports getting a
 term by one field, such as slug. However get_blog_details allows an array
 to passed and lookup is done by multiple fields. This array maps pretty
 well to the args of get_sites.

 Looking at this code again, I might skip get_sitrs if a number is passed
 and just use get_site.

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


More information about the wp-trac mailing list