diff --git a/modules/ppcp-admin-notices/src/Renderer/Renderer.php b/modules/ppcp-admin-notices/src/Renderer/Renderer.php
index d1bc3ddf6..527d83dd4 100644
--- a/modules/ppcp-admin-notices/src/Renderer/Renderer.php
+++ b/modules/ppcp-admin-notices/src/Renderer/Renderer.php
@@ -80,7 +80,7 @@ class Renderer implements RendererInterface {
printf(
'
',
- $message->type(),
+ esc_attr( $message->type() ),
( $message->is_dismissible() ) ? 'is-dismissible' : '',
( $message->wrapper() ? sprintf( 'data-ppcp-wrapper="%s"', esc_attr( $message->wrapper() ) ) : '' ),
// Use `empty()` in condition, to avoid false phpcs warning.
diff --git a/modules/ppcp-applepay/src/ApplepayModule.php b/modules/ppcp-applepay/src/ApplepayModule.php
index 180bc6ef0..d6835a4fa 100644
--- a/modules/ppcp-applepay/src/ApplepayModule.php
+++ b/modules/ppcp-applepay/src/ApplepayModule.php
@@ -241,7 +241,8 @@ class ApplepayModule implements ServiceModule, ExtendingModule, ExecutableModule
$validation_string = $this->validation_string( $is_sandbox );
nocache_headers();
header( 'Content-Type: text/plain', true, 200 );
- echo $validation_string;// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+ // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+ echo $validation_string;
exit;
}
}