[wp-trac] [WordPress Trac] #25710: wp_list_categories 'exclude' not excluding categories

WordPress Trac noreply at wordpress.org
Sat Oct 26 07:55:11 UTC 2013


#25710: wp_list_categories 'exclude' not excluding categories
--------------------------+--------------------
 Reporter:  mbijon        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.7.1
Component:  Template      |     Version:  3.7
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+--------------------

Comment (by dd32):

 The major problem is that there are no tests in that file which test
 hierarchical taxonomies, and as a result, none touch on the `exclude_tree`
 parameter.
 There's a good reason for it, our hierarchical terms caches are a bit of a
 mess, you can't reliably create, and query a hierarchical term on the same
 request, even when using the cache cleaning API..

 [attachment:25710.diff] is a basic unit test and patch that appears to fix
 this for me.

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


More information about the wp-trac mailing list