[wp-trac] [WordPress Trac] #31377: Add optional blogname to wp_get_sites

WordPress Trac noreply at wordpress.org
Thu Feb 19 13:53:00 UTC 2015


#31377: Add optional blogname to wp_get_sites
--------------------------------+-----------------------------
 Reporter:  elliott-stocks      |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  trunk
 Severity:  normal              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 Currently to get the blogname for a list of sites it requires a call to
 get_blog_details() per site.

 It'd be nice if we could add an optional parameter to wp_get_sites() which
 includes the blogname. I opted for a SQL query in the patch to prevent
 heavy use of switch_to_blog().

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31377>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list