Skip to content

Commit

Permalink
Fix "All output should be run through an escaping function".
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Mar 26, 2024
1 parent b22a1d1 commit bb98644
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/PaymentAddOn.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,11 @@ public function get_menu_icon() {

if ( ! \is_readable( $file ) ) {
throw new \Exception(
\sprintf(
'Could not read WordPress admin menu icon from file: %s.',
$file
\esc_html(
\sprintf(
'Could not read WordPress admin menu icon from file: %s.',
$file
)
)
);
}
Expand All @@ -245,9 +247,11 @@ public function get_menu_icon() {

if ( false === $svg ) {
throw new \Exception(
\sprintf(
'Could not read WordPress admin menu icon from file: %s.',
$file
\esc_html(
\sprintf(
'Could not read WordPress admin menu icon from file: %s.',
$file
)
)
);
}
Expand Down

0 comments on commit bb98644

Please sign in to comment.