Make WordPress Core

Changes between Version 1 and Version 6 of Ticket #31265


Ignore:
Timestamp:
03/07/2015 04:08:38 PM (9 years ago)
Author:
boonebgorges
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31265 – Description

    v1 v6  
    11`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:
    22
    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]
    44- `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)
    55- `orderby=meta_value`, `orderby=meta_value_num`, and `orderby=somekey` when `meta_key=somekey` should be supported. See #27887.