PluginProbe
Tiered Pricing Table for WooCommerce / 8.0.2
Tiered Pricing Table for WooCommerce v8.0.2
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
← All changes | src/Settings/CustomOptions/TPTTextTemplate.php +3 -1 6.5.0 → 8.0.2 View file →
@@ -53,8 +53,10 @@
53 53
54 54 }
55 55
56 56 public function render( $value ) {
57 + // the description is plugin-defined text (settings arrays), read once for output
58 + $description = (string) ( $value['desc'] ?? '' );
57 59 if ( ! isset( $value['id'] ) ) {
58 60 $value['id'] = '';
59 61 }
60 62 if ( ! isset( $value['title'] ) ) {
@@ -127,9 +129,9 @@
127 129 ) );
128 130 ?>
129 131
130 132 <?php if ( $value['desc'] ) : ?>
131 - <p class="description"><?php echo wp_kses_post( $value['desc'] ); ?></p>
133 + <p class="description"><?php echo wp_kses_post( $description ); // nosemgrep ?></p>
132 134 <?php endif; ?>
133 135 </td>
134 136 </tr>
135 137 <?php