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 | application/views/fields_edit/JSON_READONLY.php +9 -3 1.5.3 → 1.5.9 View file →
@@ -49,14 +49,20 @@
49 49 ?>
50 50 <?php foreach ($json_data as $key => $value) : ?>
51 51 <?php if(in_array(strtolower($key), array('element_id','eli_id','eli_type','eli_page_id','action','message'))) continue;?>
52 52 <?php if (!empty($value)) : ?>
53 - <?php if(in_array($key, array('eli_id', 'eli_type','ID','filter','action','send_action_type', 'g-recaptcha-response'))) continue; ?>
53 + <?php if(in_array($key, array('eli_id', 'eli_type', 'eli_nonce','eli_token','_wp_http_referer', 'ID','filter','action','send_action_type', 'g-recaptcha-response'))) continue; ?>
54 54 <p>
55 + <?php if(!is_intval($key)):?>
56 + <strong><?php echo
57 + // Dynamic field values are registered in the translation catalog separately.
58 +// phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText
59 + esc_html__(ucfirst(str_replace('_', ' ', $key)),'wpdirectorykit'); ?>:</strong>
60 + <?php endif;?>
55 61 <?php if(filter_var($value, FILTER_VALIDATE_URL ) || strpos( $value, 'http' ) !== FALSE):?>
56 - <strong><?php echo esc_html__(ucfirst(str_replace('_', ' ', $key)),'wpdirectorykit'); ?>:</strong> <a href="<?php echo esc_url($value);?>"><?php echo wp_kses_post($value); ?></a><br />
62 + <a href="<?php echo esc_url($value);?>"><?php echo wp_kses_post($value); ?></a><br />
57 63 <?php else : ?>
58 - <strong><?php echo esc_html__(ucfirst(str_replace('_', ' ', $key)),'wpdirectorykit'); ?>:</strong> <?php echo wp_kses_post($value); ?><br />
64 + <?php echo wp_kses_post($value); ?><br />
59 65 <?php endif; ?>
60 66 </p>
61 67 <?php endif; ?>
62 68 <?php endforeach; ?>