[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 19:34:27 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 SergeyBiryukov):

 Replying to [comment:8 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_children()
 inside the 'cat' block.
 I'm inclined to the second option. Is there a reason why it was removed?
 Can't find the changeset.

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


More information about the wp-trac mailing list