[wp-trac] [WordPress Trac] #21621: setting meta_type doesn't CAST orderby value

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 26 05:29:12 UTC 2012


#21621: setting meta_type doesn't CAST orderby value
----------------------------+------------------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Query           |     Version:  3.2
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------------

Comment (by nacin):

 So this is to add a new meta_type query argument? Looks like this diff
 will need a bit more, then.

 Should meta_value_num convert itself to meta_value = meta_value_num and
 meta_type = int?

 get_meta_type() seems like it belongs as a static method on WP_Meta_Query.
 Maybe that's just me.

 Given both #15031 and #17065, I don't know if this should be pushed into
 3.5.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21621#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list