[wp-trac] [WordPress Trac] #31220: Add orderby meta_value_num to WP_User_Query
WordPress Trac
noreply at wordpress.org
Tue Feb 3 09:52:04 UTC 2015
#31220: Add orderby meta_value_num to WP_User_Query
--------------------------+------------------------------
Reporter: shyammakwana | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 4.0.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by tyxla):
Makes sense to me - this would be useful for sorting by numeric user meta.
I've just added a patch that:
* Addresses the capability to sort by `meta_value_num`;
* Adds a unit test for that case;
* Updates the `$orderby` query parameter documentation to include
`meta_value_num`.
Please, refer to the second patch `31220.2.patch`, as it contains the
documentation update.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31220#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list