[wp-trac] [WordPress Trac] #9177: Remove meta_value from selected fields

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 19 18:03:41 GMT 2009


#9177: Remove meta_value from selected fields
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:  anonymous                          
     Type:  defect (bug)  |      Status:  new                                
 Priority:  normal        |   Milestone:  2.8                                
Component:  General       |     Version:                                     
 Severity:  normal        |    Keywords:  has-patch query meta_value meta_key
--------------------------+-------------------------------------------------
 [8922], the fix for #7431, introduced an unnecessary line that adds
 wp_postmeta.meta_value to the list of selected fields.

 Talking to !AaronCampbell, the author of the above patch, in IRC confirmed
 my hunch that it was unintentional.

 If you're querying by meta_value, then you already know the meta_value
 value.  If you're querying by just meta_key, then you will (in theory) not
 get back all meta_values because there will be only one entry per post
 (see #9167).  So meta_value is either unnecessary or unreliable as Loop
 query data.

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


More information about the wp-trac mailing list