[wp-trac] [WordPress Trac] #16152: category__in now shows posts from children categories too

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 8 17:55:30 UTC 2011


#16152: category__in now shows posts from children categories too
------------------------------+------------------
 Reporter:  linuxologos       |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.1
Component:  Query             |     Version:  3.1
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------

Comment (by ryan):

 Perhaps the 'cat' block could set a flag to force inclusion of children
 for 'category!__in'.  This would mean that passing both cat and
 category!__in would result in child inclusion for all categories. A small
 back compat break.   Alternatively, go back to calling get_term_chidlren()
 inside the 'cat' block.

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


More information about the wp-trac mailing list