Skip to content

Commit

Permalink
Escape payment gateway integration settings field description.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Oct 4, 2023
1 parent 8382cc0 commit ffca40b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion views/meta-box-gateway-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,17 @@ function ( $section ) {
if ( isset( $field['description'] ) ) {
printf(
'<p class="pronamic-pay-description description">%s</p>',
$field['description']
\wp_kses(
$field['description'],
[
'a' => [
'href' => true,
'target' => true,
],
'br' => [],
'code' => [],
]
)
);
}

Expand Down

0 comments on commit ffca40b

Please sign in to comment.