[wp-trac] [WordPress Trac] #12212: post__in and other array_key can't manage empty array properly

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 15 17:14:02 UTC 2010


#12212: post__in and other array_key can't manage empty array properly
--------------------------+-------------------------------------------------
 Reporter:  lifeless85    |       Owner:  ryan       
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  Query         |     Version:  2.9.1      
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
Changes (by scribu):

  * keywords:  post__in, category__in, tag__in, tag_slug__in,
               fill_query_vars, array_keys, get_posts =>
               needs-patch
  * milestone:  2.9.2 => 3.0


Comment:

 I think a better solution would be for fill_query_vars() to fill post__in
 with 'false' or 'null' rather than not setting it at all.

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


More information about the wp-trac mailing list