Skip to content

Commit

Permalink
Merge pull request #151 from pronamic/150-payment-gateway-integration…
Browse files Browse the repository at this point in the history
…-settings-field-description-output-not-escaped

Escape payment gateway integration settings field description
  • Loading branch information
remcotolsma authored Oct 4, 2023
2 parents 8382cc0 + ffca40b commit 3e3721b
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 3e3721b

Please sign in to comment.