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

WordPress Trac noreply at wordpress.org
Thu Jun 2 20:14:20 UTC 2016


#31377: Add optional blogname to wp_get_sites
--------------------------------+------------------------
 Reporter:  elliott-stocks      |       Owner:
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:
Component:  Networks and Sites  |     Version:  4.2
 Severity:  normal              |  Resolution:  wontfix
 Keywords:                      |     Focuses:  multisite
--------------------------------+------------------------
Changes (by jeremyfelt):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 The best way forward for having `blogname` more dynamically accessible is
 probably via lazy loading meta when accessed for the first time on a
 `WP_Site` object. See #36935. That way we won't have to loop through
 `get_blog_details()` and we only pull the data when we need it.

 `wp_get_sites()` itself should be deprecated (See #36994) in the near
 future, so I'm going to close this out as wontfix.

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


More information about the wp-trac mailing list