Merge pull request #17846 from woocommerce/fix/17845

Slugs are encoded, so decode before outputting to the form
This commit is contained in:
Claudiu Lodromanean 2017-11-21 09:27:03 -08:00 committed by GitHub
commit 5af225a2c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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>';