[wp-trac] [WordPress Trac] #35791: WP_Site_Query class
WordPress Trac
noreply at wordpress.org
Wed Apr 27 10:16:27 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 flixos90):
Replying to [comment:23 websupporter]:
> Hi,
> are there plans to add a meta_query or would this be a later
enhancement?
I thought about the same thing a few days ago. However adding this would
be problematic since there is no global database table like `blogmeta`
which we could use with the `WP_Meta_Query` class. As far as I can see,
the "meta values" of a site are options and are stored in a separate DB
`options` table for each site. It's not optimal for this approach, but
there might be nothing we can do here at this point.
Supporting meta queries will be no problem for a future `WP_Network_Query`
though since network-related meta values (network options) are located in
a global `sitemeta` table. :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35791#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list