[wp-trac] [WordPress Trac] #15340: meta_value needs needs more flexibility to be either a string or an integer

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 8 11:57:20 UTC 2010


#15340: meta_value needs needs more flexibility to be either a string or an integer
--------------------------+-------------------------------------------------
 Reporter:  jcskyrocket   |       Owner:                          
     Type:  defect (bug)  |      Status:  new                     
 Priority:  normal        |   Milestone:  Awaiting Review         
Component:  General       |     Version:  3.0.1                   
 Severity:  normal        |    Keywords:  meta_compare, meta_value
--------------------------+-------------------------------------------------
 When using meta_compare and meta_value with query_posts, the meta_value
 always seems to be treated as a string.

 It would be very useful, to use meta_value as an integer to perform
 numerical queries, filters and more complex sorts.

 For more background info, see this post:

 http://wordpress.stackexchange.com/questions/3737/meta-compare-seems-to-
 be-treating-values-as-strings-instead-of-integers-as-expect

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15340>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list