Skip to content

Commit

Permalink
Fix "All output should be run through an escaping function" warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Oct 4, 2023
1 parent f35a8e8 commit 3f5d025
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions views/meta-box-gateway-webhook-log.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,23 @@
$payment_id = ( null === $payment ) ? null : $payment->get_id();

if ( null !== $payment_id ) {
printf(
/* translators: 1: formatted date, 2: payment edit url, 3: payment id */
__(
'Last webhook request processed on %1$s for <a href="%2$s" title="Payment %3$s">payment #%3$s</a>.',
'pronamic_ideal'
echo wp_kses(
sprintf(
/* translators: 1: formatted date, 2: payment edit url, 3: payment id */
__(
'Last webhook request processed on %1$s for <a href="%2$s" title="Payment %3$s">payment #%3$s</a>.',
'pronamic_ideal'
),
$webhook_log_request_info->get_request_date()->format_i18n( _x( 'l j F Y \a\t H:i', 'full datetime format', 'pronamic_ideal' ) ),
esc_url( (string) get_edit_post_link( $payment_id ) ),
(string) $payment_id
),
esc_html( $webhook_log_request_info->get_request_date()->format_i18n( _x( 'l j F Y \a\t H:i', 'full datetime format', 'pronamic_ideal' ) ) ),
esc_url( (string) get_edit_post_link( $payment_id ) ),
esc_html( (string) $payment_id )
[
'a' => [
'href' => true,
'title' => true,
],
]
);
} else {
echo esc_html(
Expand Down

0 comments on commit 3f5d025

Please sign in to comment.