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

WordPress Trac noreply at wordpress.org
Sat Sep 14 21:10:42 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 nacin):

 I think wp_get_sites() should only return sites *from that network* by
 default. You should need to explicitly pass `null` to this function to get
 sites from any network.

 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).

 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.

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


More information about the wp-trac mailing list