[wp-trac] [WordPress Trac] #35791: WP_Site_Query class

WordPress Trac noreply at wordpress.org
Tue Feb 9 21:49:21 UTC 2016


#35791: WP_Site_Query class
--------------------------+-----------------------------
 Reporter:  spacedmonkey  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.4
 Severity:  normal        |   Keywords:
  Focuses:  multisite     |
--------------------------+-----------------------------
 With WP_Site is being merged in #32450 and we need a way to get query the
 blogs table in a consistent way of querying for sites.

 This class could be used to logic instead the following functions

 get_id_from_blogname
 get_blogaddress_by_id
 get_blog_details
 get_blog_status
 get_last_updated
 get_blog_id_from_url
 domain_exists
 wp_get_sites
 get_site_by_path ( Not sure about this one )
 ms_allowed_http_request_hosts

 This class could also be used to create a sites endpoint in the rest api.

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


More information about the wp-trac mailing list