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

WordPress Trac noreply at wordpress.org
Sat Oct 26 06:36:48 UTC 2013


#25710: wp_list_categories 'exclude' not excluding categories
--------------------------+-----------------------------
 Reporter:  mbijon        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  3.7
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 Category lists built with `wp_list_categories('exclude=#')` are not
 excluding the category|categories in the exclusion list.

 This fails using either format of wp_list_categories():

 `wp_list_categories( array( 'exclude' => '#' ) );`

 `wp_list_categories( 'exclude=#,##' );`


 I've tested several variations:
 * If you exclude a top-level, parent or child category it will still be
 listed
 * If you exclude a parent category but not the children, then the parent
 shows but the children do not
 * Other options like order, show_count, & depth don't appear to change
 this result

 There are numerous reports of this bug in WP.org:
 * http://wordpress.org/support/topic/wp_list_categories-does-not-accept-
 exclude-anymore
 * http://wordpress.org/support/topic/wp_list_categories-all-of-a-sudden-
 wont-exclude-a-category
 * http://wordpress.org/support/topic/wp_list_categories-exclude-not-
 working-anymore-in-37

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


More information about the wp-trac mailing list