Merge pull request #21312 from woocommerce/fix/21295

Fix encoded special chars in layered nav "Any %s" string.
This commit is contained in:
Claudiu Lodromanean 2018-09-11 10:01:36 -07:00 committed by GitHub
commit 1411567177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ class WC_Widget_Layered_Nav extends WC_Widget {
if ( jQuery().selectWoo ) {
var wc_layered_nav_select = function() {
jQuery( '.dropdown_layered_nav_" . esc_js( $taxonomy_filter_name ) . "' ).selectWoo( {
placeholder: '" . esc_js( $any_label ) . "',
placeholder: '" . wp_json_encode( (string) wp_specialchars_decode( $any_label, ENT_QUOTES ) ) . "',
minimumResultsForSearch: 5,
width: '100%',
allowClear: " . ( $multiple ? 'false' : 'true' ) . ",