Fix the exclude_tree argument in get_terms(), which fixes the exclude argument in wp_list_categories().
This was a 3.7 regression caused by [25162]. props dd32. see #25710 for trunk. Built from https://develop.svn.wordpress.org/trunk@25933 git-svn-id: http://core.svn.wordpress.org/trunk@25892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c08aee70bb
commit
bba2a414a2
|
@ -1362,7 +1362,7 @@ function get_terms($taxonomies, $args = '') {
|
|||
$exclusions = '';
|
||||
if ( ! empty( $exclude_tree ) ) {
|
||||
$exclude_tree = wp_parse_id_list( $exclude_tree );
|
||||
$excluded_children = array();
|
||||
$excluded_children = $exclude_tree;
|
||||
foreach ( $exclude_tree as $extrunk ) {
|
||||
$excluded_children = array_merge(
|
||||
$excluded_children,
|
||||
|
|
Loading…
Reference in New Issue