Skip to content

Commit

Permalink
Merge pull request #25 from rnaby/walker-class-attribute-escape
Browse files Browse the repository at this point in the history
Walker class attribute escape
  • Loading branch information
jtsternberg authored Nov 16, 2017
2 parents fb8d172 + 442b096 commit 2627a04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions walker.taxonomy-single-term.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ public function start_el( &$output, $term, $depth = 0, $args = array(), $id = 0
$in_selected = in_array( $term->term_id, $selected_cats );

$args = array(
'id' => $taxonomy .'-'. $term->term_id,
'name' => $name,
'value' => $value,
'id' => esc_attr( $taxonomy .'-'. $term->term_id ),
'name' => esc_attr( $name ),
'value' => esc_attr( $value ),
'checked' => checked( $in_selected, true, false ),
'selected' => selected( $in_selected, true, false ),
'disabled' => disabled( empty( $args['disabled'] ), false, false ),
Expand Down

0 comments on commit 2627a04

Please sign in to comment.