[wp-trac] [WordPress Trac] #31148: Extend wp_get_sites() to support queries on domain, path and across all networks

WordPress Trac noreply at wordpress.org
Tue Jan 27 22:39:22 UTC 2015


#31148: Extend wp_get_sites() to support queries on domain, path and across all
networks
--------------------------------+-----------------------------
 Reporter:  earnjam             |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:
 Severity:  normal              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 `wp_get_sites()` was introduced in [25445]. At that time @nacin
 [https://core.trac.wordpress.org/ticket/14511#comment:30 noted]:
 >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.

 In order to do this, it needs to be extended to be able to support queries
 on both `domain` and `path` as well as across all networks.

 This could also be the first step toward replacing `domain_exists()` in
 #30233.

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


More information about the wp-trac mailing list