[wp-trac] [WordPress Trac] #35791: WP_Site_Query class
WordPress Trac
noreply at wordpress.org
Wed Apr 27 10:01:04 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 websupporter):
Hi,
are there plans to add a meta_query or would this be a later enhancement?
Furthermore, I've read in the doc
{{{#!php
* @type string|array $orderby Site status or array of statuses. To use
'meta_value'
* or 'meta_value_num', `$meta_key` must also be defined.
* To sort by a specific `$meta_query` clause, use that
* clause's array key. Accepts 'site_agent',
* 'site_approved', 'site_author',
* 'site_author_email', 'site_author_IP',
* 'site_author_url', 'site_content', 'site_date',
* 'site_date_gmt', 'blog_id', 'site_karma',
* 'site_parent', 'site_id', 'site_type',
* 'user_id', 'site__in', 'meta_value', 'meta_value_num',
* the value of $meta_key, and the array keys of
* `$meta_query`. Also accepts false, an empty array, or
* 'none' to disable `ORDER BY` clause.
* Default: 'site_date_gmt'.
}}}
Line 155 (sorry, markup is messing up a bit). Is this still to come
(Didn't find anything here in the discussion) or would this be a future
enhancement?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35791#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list