Remove charset, WP will load site charset by default. We need to do esc_js first before wp_specialchars_decode to avoid esc_js to encode double quotes again.

This commit is contained in:
Gerhard Potgieter 2018-09-10 11:58:39 +02:00
parent 6b3feb0417
commit 16b2abe8cd
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: '" . wp_specialchars_decode( esc_js( $any_label ), ENT_QUOTES, get_bloginfo( 'charset' ) ) . "',
placeholder: '" . wp_specialchars_decode( esc_js( $any_label ), ENT_QUOTES ) . "',
minimumResultsForSearch: 5,
width: '100%',
allowClear: " . ( $multiple ? 'false' : 'true' ) . ",