[wp-trac] [WordPress Trac] #25710: wp_list_categories 'exclude' not excluding categories
WordPress Trac
noreply at wordpress.org
Sat Oct 26 17:51:02 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: has-patch commit fixed-major |
------------------------------------------+--------------------
Comment (by mbijon):
Replying to [comment:8 salromano]:
> So am I understanding this right? To patch this, I just need to change:
>
> $excluded_children = array();
>
> In wp-includes/taxonomy.php to:
>
> $excluded_children = $exclude_tree;
That's correct. Just change the 1-line and your WP will work again.
The other file is a unit test that the core devs can run to check this
isn't broken in the future. You don't need it at all to run WP.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25710#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list