Merge pull request #22185 from woocommerce/fix/21735
Don't wrap layered nav wp_json_encode string in quotes
This commit is contained in:
commit
34f472fdf2
|
@ -293,7 +293,7 @@ class WC_Widget_Layered_Nav extends WC_Widget {
|
||||||
if ( jQuery().selectWoo ) {
|
if ( jQuery().selectWoo ) {
|
||||||
var wc_layered_nav_select = function() {
|
var wc_layered_nav_select = function() {
|
||||||
jQuery( '.dropdown_layered_nav_" . esc_js( $taxonomy_filter_name ) . "' ).selectWoo( {
|
jQuery( '.dropdown_layered_nav_" . esc_js( $taxonomy_filter_name ) . "' ).selectWoo( {
|
||||||
placeholder: '" . wp_json_encode( (string) wp_specialchars_decode( $any_label, ENT_QUOTES ) ) . "',
|
placeholder: " . wp_json_encode( (string) wp_specialchars_decode( $any_label ) ) . ",
|
||||||
minimumResultsForSearch: 5,
|
minimumResultsForSearch: 5,
|
||||||
width: '100%',
|
width: '100%',
|
||||||
allowClear: " . ( $multiple ? 'false' : 'true' ) . ",
|
allowClear: " . ( $multiple ? 'false' : 'true' ) . ",
|
||||||
|
|
Loading…
Reference in New Issue