| @@ -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 |