Skip to content

Commit

Permalink
bugfix for excluded terms in nested taxonomies
Browse files Browse the repository at this point in the history
  • Loading branch information
raideus committed Jan 14, 2015
1 parent 1acfa80 commit 2a34041
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wpas-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ private function build_options_list($elements = array(), $field_func, $level = 0
$output .= $pre;

foreach($elements as $element) {
if (in_array($element['value'],$this->exclude)) continue;
$output .= call_user_func($field_func, $element['value'],$element['label'], $level);
$output .= $this->build_options_list($element['children'], $field_func, $level+1, $pre, $post);
}
Expand Down

0 comments on commit 2a34041

Please sign in to comment.