[wp-trac] [WordPress Trac] #27887: Add orderby meta_value_num option for WP_User_Query

WordPress Trac noreply at wordpress.org
Tue Oct 28 21:25:12 UTC 2014


#27887: Add orderby meta_value_num option for WP_User_Query
-------------------------+------------------------------
 Reporter:  genkisan     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Users        |     Version:  3.9
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  template
-------------------------+------------------------------
Changes (by jdgrimes):

 * keywords:  has-patch reporter-feedback => has-patch


Comment:

 Related: #21621

 That ticket provided a more robust solution for `WP_Query` by always
 casting the `ORDER BY` with the `meta_type`. I just looked at the source
 and it seems that `meta_type` isn't currently documented for
 `WP_User_Query`, though of course it can be used because it is handled by
 `WP_Meta_Query`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27887#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list