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:
parent
6b3feb0417
commit
16b2abe8cd
|
@ -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' ) . ",
|
||||
|
|
Loading…
Reference in New Issue