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

WordPress Trac noreply at wordpress.org
Sun Sep 15 15:48:19 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  |
-------------------------------------+------------------

Comment (by jeremyfelt):

 Replying to [comment:30 nacin]:
 > This is similar to how WP_User_Query works (only users assigned to a
 site), and also the network admin (only sites for the network being
 edited).

 That makes sense. Random info for another ticket: the
 WP_MS_Users_List_Table overwrites that user query with `blog_id => 0`, so
 all users are returned on all networks.

 > I think the roadmap for this function, by the way, should be to replace
 all direct queries to $wpdb->blogs in WP_MS_Sites_List_Table, and ideally
 any other non-complex direct queries to $wpdb->blogs elsewhere.

 Agreed. There's a bunch that can be cleaned up. To go all the way, we'd
 also want to handle domain and path searches.

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


More information about the wp-trac mailing list