]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/taxonomy.php
WordPress 3.7.1
[autoinstalls/wordpress.git] / wp-includes / taxonomy.php
index c8191fe0b0da756bfec29301548f3950b4126698..4bf48a93d61b74b897dabbb64a4e6da73a187ef1 100644 (file)
@@ -1362,7 +1362,7 @@ function get_terms($taxonomies, $args = '') {
        $exclusions = '';
        if ( ! empty( $exclude_tree ) ) {
                $exclude_tree = wp_parse_id_list( $exclude_tree );
        $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,
                foreach ( $exclude_tree as $extrunk ) {
                        $excluded_children = array_merge(
                                $excluded_children,