[wp-trac] Re: [WordPress Trac] #8614: With wp_list_categories child categories not excluded when parents are excluded

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 23 03:03:34 GMT 2008


#8614: With wp_list_categories child categories not excluded when parents are
excluded
--------------------------+-------------------------------------------------
 Reporter:  marketingfm   |        Owner:  anonymous
     Type:  defect (bug)  |       Status:  new      
 Priority:  normal        |    Milestone:  2.7.1    
Component:  General       |      Version:  2.7      
 Severity:  normal        |   Resolution:           
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by filosofo):

 Replying to [comment:6 jhodgdon]:
 > Hmmm... This came from #8087, which specifically had a reason for
 putting that change in.... So someone didn't think through all the
 consequences...
 >
 > Not sure how to fix it, if #8087 was a valid bug...

 Yes, you can blame me.  The first bullet point in #8087 explains the bug
 that allowed this behavior.

 I think Ryan has proposed the right solution in "exclude_tree," for which
 I've attached a patch.  The previous behavior---while admittedly having
 the weight of precedent---also suffered from being ambiguous.  In other
 words, I don't think one would expect that having the "exclude" argument
 by itself would exclude all descendants, had one not already observed this
 behavior. So "exclude_tree" provides the needed behavior along with
 clarity.

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


More information about the wp-trac mailing list