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/STARS_READONLY.php +7 -3 1.2.3 → 1.5.9 View file →
@@ -36,9 +36,9 @@
36 36 $required = '*';
37 37
38 38 ?>
39 39
40 -<div class="wdk-field-edit <?php echo esc_attr($field->field_type); ?> wdk-col-<?php echo esc_attr($field->columns_number); ?> <?php echo esc_attr($field->class); ?>">
40 +<div class="wdk-field-<?php echo esc_attr($field_id);?> wdk-field-edit <?php echo esc_attr($field->field_type); ?> wdk-col-<?php echo esc_attr($field->columns_number); ?> <?php echo esc_attr($field->class); ?>">
41 41 <label for="<?php echo esc_attr($field_id); ?>"><?php echo esc_html($field_label).esc_html($required); ?></label>
42 42 <div class="wdk-field-container">
43 43 <?php for ($i = 1; $i <= 5; $i++): ?>
44 44 <?php if ($i <= wmvc_show_data($field_id, $db_data)): ?>
@@ -49,11 +49,15 @@
49 49 <span class="dashicons dashicons-star-empty"></span>
50 50 <?php endif; ?>
51 51 <?php endfor; ?>
52 52 <span class="suffix"><?php
53 - echo esc_html($field->prefix);
53 + // Dynamic field values are registered in the translation catalog separately.
54 + // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText
55 + echo esc_html__($field->prefix, 'wpdirectorykit');
54 56 if(!empty($field->prefix) && !empty($field->suffix)) echo ' / ';
55 - echo esc_html($field->suffix);
57 + // Dynamic field values are registered in the translation catalog separately.
58 + // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText
59 + echo esc_html__($field->suffix, 'wpdirectorykit');
56 60 ?></span>
57 61 <?php if(!empty($field->hint)):?>
58 62 <p class="wdk-hint">
59 63 <?php echo esc_html($field->hint); ?>