PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 All 37 releases
← All changes | elementor-elements/views/wdk-listing-fields-section.php +7 -3 1.5.3 → 1.5.9 View file →
@@ -46,9 +46,9 @@
46 46 fied_<?php echo esc_attr(wmvc_show_data('idfield', $field));?>
47 47 ">
48 48 <?php if(wmvc_show_data('field_group_icon_enable', $settings, false) && wmvc_show_data('icon_id', $field, false)):?>
49 49 <span class="field_icon">
50 - <img src="<?php echo esc_url(wdk_image_src($field, 'full',NULL,'icon_id'));?>" alt="<?php echo wmvc_show_data('field_label', $value);?>" class="wdk-icon">
50 + <img src="<?php echo esc_url(wdk_image_src($field, 'full',NULL,'icon_id'));?>" alt="<?php echo esc_attr(wmvc_show_data('field_label', $value));?>" class="wdk-icon">
51 51 </span>
52 52 <?php endif;?>
53 53 <span class="field_label">
54 54 <?php echo esc_html(wmvc_show_data('label_prefix', $settings));?><?php echo esc_html(wmvc_show_data('field_label', $field));?><?php echo esc_html(wmvc_show_data('label_suffix', $settings));?>
@@ -78,8 +78,10 @@
78 78 {
79 79 $translated_value = [];
80 80 foreach(explode(',', $field_value) as $value)
81 81 {
82 + // Dynamic field values are registered in the translation catalog separately.
83 +// phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText
82 84 $translated_value []= esc_html__(trim($value), 'wpdirectorykit');
83 85 }
84 86
85 87 $field_value = implode(', ', $translated_value);
@@ -148,13 +150,13 @@
148 150
149 151 /* price format implement */
150 152 if(function_exists('run_wdk_currency_conversion') && wdk_currencies_is_price_field(wmvc_show_data('idfield', $field))) {
151 153 /* if currency_conversion and field is price */
152 - $value = strip_tags(apply_filters( 'wpdirectorykit/listing/field/value', wdk_filter_decimal($field_value), wmvc_show_data('idfield', $field), FALSE));
154 + $value = wp_strip_all_tags(apply_filters( 'wpdirectorykit/listing/field/value', wdk_filter_decimal($field_value), wmvc_show_data('idfield', $field), FALSE));
153 155 $field_value = esc_html(wdk_number_format_i18n($value));
154 156 } elseif(wdk_field_option(wmvc_show_data('idfield', $field), 'is_price_format')) {
155 157 /* if field enabled is_price_format and field type is number*/
156 - $value = strip_tags(apply_filters( 'wpdirectorykit/listing/field/value', wdk_filter_decimal($field_value), wmvc_show_data('idfield', $field), FALSE));
158 + $value = wp_strip_all_tags(apply_filters( 'wpdirectorykit/listing/field/value', wdk_filter_decimal($field_value), wmvc_show_data('idfield', $field), FALSE));
157 159 $field_value = esc_html(wdk_number_format_i18n($value));
158 160 } else {
159 161 /* without number format */
160 162 $field_value = apply_filters( 'wpdirectorykit/listing/field/value', $field_value, wmvc_show_data('idfield', $field));
@@ -245,8 +247,10 @@
245 247 $field_value ='';
246 248
247 249 } elseif(wmvc_show_data('field_type', $field) == 'TEXTAREA') {
248 250 global $wp_embed;
251 + // Dynamic field values are registered in the translation catalog separately.
252 +// phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText
249 253 $field_value = wpautop(__($field_value, 'wpdirectorykit' ));
250 254 $field_value = html_entity_decode($wp_embed->autoembed($field_value ));
251 255 } else {
252 256 $field_value = apply_filters( 'wpdirectorykit/listing/field/value', $field_value, wmvc_show_data('idfield', $field));