[wp-trac] [WordPress Trac] #35791: WP_Site_Query class
WordPress Trac
noreply at wordpress.org
Tue Apr 26 17:40:52 UTC 2016
#35791: WP_Site_Query class
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 4.6
Component: Networks and Sites | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit- | Focuses: multisite
tests |
-------------------------------------------------+-------------------------
Comment (by spacedmonkey):
I have split the patches up. 35791c.1.patch is the wp_site_query class (c
for class), 35791i.1.patch is the implementation.
I have introduced a function called get_sites. This is bring it to like
with other query objects, as comments, posts and users all have get_*s
functions.
Going forward, I think we should depreciate wp_get_sites, as get_sites
should replace it.
@DrewAPicture did my best with comments, but love your help.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35791#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list