[wp-trac] [WordPress Trac] #18210: Update_post_meta is case insensitive on meta_key, but get_post_meta is NOT

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 22 08:25:47 UTC 2011


#18210: Update_post_meta is case insensitive on meta_key, but get_post_meta is NOT
--------------------------+------------------------------
 Reporter:  anmari        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.2.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by anmari):

 get_posts also NOT case sensitive:


 {{{
         $args = array(
         'posts_per_page' => '-1',
         'post_type'=>'any',
         'meta_key'=> $key  // update to your key
 );
         $allpostwith = get_posts( $args );
 }}}


 will return a MIX of lower and uppercase.


 Is it caused by a mysql 'feature' perhaps?  Similar behaviour in
 phpmyadmin?  by why get_post_meta works ie is case sensitive  ?

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


More information about the wp-trac mailing list