Merge pull request #17846 from woocommerce/fix/17845
Slugs are encoded, so decode before outputting to the form
This commit is contained in:
commit
5af225a2c8
|
@ -264,7 +264,7 @@ class WC_Widget_Layered_Nav extends WC_Widget {
|
|||
continue;
|
||||
}
|
||||
|
||||
echo '<option value="' . esc_attr( $term->slug ) . '" ' . selected( $option_is_set, true, false ) . '>' . esc_html( $term->name ) . '</option>';
|
||||
echo '<option value="' . esc_attr( urldecode( $term->slug ) ) . '" ' . selected( $option_is_set, true, false ) . '>' . esc_html( $term->name ) . '</option>';
|
||||
}
|
||||
|
||||
echo '</select>';
|
||||
|
|
Loading…
Reference in New Issue