Changes between Version 1 and Version 6 of Ticket #31265
- Timestamp:
- 03/07/2015 04:08:38 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31265 – Description
v1 v6 1 1 `WP_Query`, `WP_User_Query`, and `WP_Comment_Query` all have some support for ordering results by metadata (postmeta, usermeta, or commentmeta). But the support is inconsistent. `WP_Query` should be the reference, and we should sweep through `WP_User_Query` and `WP_Comment_Query` to ensure that they're up to snuff. Things to check: 2 2 3 - 'orderby' should accept space-separated values (`'orderby' => 'comment_user_ID comment_ID'`) as well as the array syntax introduced to `WP_Query` in #17065. See #30478.3 - --'orderby' should accept space-separated values (`'orderby' => 'comment_user_ID comment_ID'`) as well as the array syntax introduced to `WP_Query` in #17065. See #30478.-- [done] 4 4 - `meta_value`, `meta_key`, `meta_type`, and `meta_compare` should all be supported, and should be translated to a `meta_query` clause in the same way (using `WP_Meta_Query::parse_query_vars()`, I suppose) 5 5 - `orderby=meta_value`, `orderby=meta_value_num`, and `orderby=somekey` when `meta_key=somekey` should be supported. See #27887.