summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/akismet/class.akismet-widget.php')
-rw-r--r--plugins/akismet/class.akismet-widget.php24
1 files changed, 23 insertions, 1 deletions
diff --git a/plugins/akismet/class.akismet-widget.php b/plugins/akismet/class.akismet-widget.php
index 55b0f35c..9f0458b0 100644
--- a/plugins/akismet/class.akismet-widget.php
+++ b/plugins/akismet/class.akismet-widget.php
@@ -99,7 +99,29 @@ class Akismet_Widget extends WP_Widget {
?>
<div class="a-stats">
- <a href="https://akismet.com" target="_blank" title=""><?php printf( _n( '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>', '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>', $count , 'akismet'), number_format_i18n( $count ) ); ?></a>
+ <a href="https://akismet.com" target="_blank" rel="noopener" title="">
+ <?php
+
+ echo wp_kses(
+ sprintf(
+ /* translators: The placeholder is the number of pieces of spam blocked by Akismet. */
+ _n(
+ '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>',
+ '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>',
+ $count,
+ 'akismet'
+ ),
+ number_format_i18n( $count )
+ ),
+ array(
+ 'strong' => array(
+ 'class' => true,
+ ),
+ )
+ );
+
+ ?>
+ </a>
</div>
<?php