[wp-trac] [WordPress Trac] #14511: new function - wp_get_sites($args)

WordPress Trac noreply at wordpress.org
Tue Aug 27 06:23:23 UTC 2013


#14511: new function - wp_get_sites($args)
-------------------------------------+------------------
 Reporter:  transom                  |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  3.7
Component:  Multisite                |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------
Changes (by jeremyfelt):

 * milestone:  Future Release => 3.7


Comment:

 A `wp_get_sites()` would be nice.

 IMO, it doesn't necessarily need to duplicate the efforts of
 `get_blog_list()` (deprecated in [15170]). It should provide a straight
 forward method of accessing information about the sites in a specified
 network.

 I've attached [attachment:14511.diff] as a starting point. Caching needs
 to be added and most likely the site query would need to return more than
 `blog_id, domain, path`.

 Moving to 3.7 for discussion.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/14511#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list