Skip to content

Commit

Permalink
chore: appease plugin check by adding escaping everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Waldstein authored and Jon Waldstein committed Oct 22, 2024
1 parent 3822ab5 commit b6514ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Addon/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static function load(string $view, array $templateParams = [], bool $echo
return $content;
}

echo $content;
echo esc_html($content);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Addon/resources/views/admin/notices/give-inactive.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

<strong><?php esc_attr_e( 'Activation Error:', 'givewp-cloudflare-turnstile' ); ?></strong>
<?php esc_attr_e( 'You must have', 'givewp-cloudflare-turnstile' ); ?> <a href="https://givewp.com" target="_blank">Give</a>
<?php printf( __( 'plugin installed and activated for the %s add-on to activate', 'givewp-cloudflare-turnstile' ), GIVE_CLOUDFLARE_TURNSTILE_NAME ); ?>
<?php printf(/* translators: %s: GiveWP Add-on name. */ esc_html__( 'plugin installed and activated for the %s add-on to activate', 'givewp-cloudflare-turnstile' ), esc_attr(GIVE_CLOUDFLARE_TURNSTILE_NAME) ); ?>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<strong><?php esc_attr_e( 'Activation Error:', 'givewp-cloudflare-turnstile' ); ?></strong>
<?php esc_attr_e( 'You must have', 'givewp-cloudflare-turnstile' ); ?> <a href="https://givewp.com" target="_blank">Give</a>
<?php esc_attr_e( 'version', 'givewp-cloudflare-turnstile' ); ?> <?php echo GIVE_CLOUDFLARE_TURNSTILE_MIN_GIVE_VERSION; ?>+
<?php printf( esc_html__( 'for the %1$s add-on to activate', 'givewp-cloudflare-turnstile' ), GIVE_CLOUDFLARE_TURNSTILE_NAME ); ?>
<?php esc_attr_e( 'version', 'givewp-cloudflare-turnstile' ); ?> <?php echo esc_attr(GIVE_CLOUDFLARE_TURNSTILE_MIN_GIVE_VERSION); ?>
<?php printf(/* translators: %1$s: GiveWP Add-on name. */ esc_html__( 'for the %1$s add-on to activate', 'givewp-cloudflare-turnstile' ), esc_attr(GIVE_CLOUDFLARE_TURNSTILE_NAME) ); ?>
.

0 comments on commit b6514ed

Please sign in to comment.