Don't wrap wp_json_encode string in quotes, it already does it for us.

This commit is contained in:
Gerhard 2018-12-10 10:14:56 +02:00
parent 0b413351a2
commit 7074b0933c
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_json_encode( (string) wp_specialchars_decode( $any_label, ENT_QUOTES ) ) . "',
placeholder: " . wp_json_encode( (string) wp_specialchars_decode( $any_label ) ) . ",
minimumResultsForSearch: 5,
width: '100%',
allowClear: " . ( $multiple ? 'false' : 'true' ) . ",