Skip to content

Commit

Permalink
Clarify distinction between Dashboard widgets
Browse files Browse the repository at this point in the history
Fix Automattic#13952.

Add headers to clarify that two different features
are being shown in the Dashboard footer widget,
for Jetpack.
  • Loading branch information
coleshaw committed Feb 5, 2020
1 parent d6b0ff2 commit 34fa871
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions class.jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -6775,6 +6775,7 @@ public static function dashboard_widget_footer() {
<footer>

<div class="protect">
<h4>Jetpack Protect</h4>
<?php if ( self::is_module_active( 'protect' ) ) : ?>
<h3><?php echo number_format_i18n( get_site_option( 'jetpack_protect_blocked_attempts', 0 ) ); ?></h3>
<p><?php echo esc_html_x( 'Blocked malicious login attempts', '{#} Blocked malicious login attempts -- number is on a prior line, text is a caption.', 'jetpack' ); ?></p>
Expand All @@ -6794,17 +6795,18 @@ public static function dashboard_widget_footer() {
);
?>
" class="button button-jetpack" title="<?php esc_attr_e( 'Protect helps to keep you secure from brute-force login attacks.', 'jetpack' ); ?>">
<?php esc_html_e( 'Activate Protect', 'jetpack' ); ?>
<?php esc_html_e( 'Activate Jetpack Protect', 'jetpack' ); ?>
</a>
<?php else : ?>
<?php esc_html_e( 'Protect is inactive.', 'jetpack' ); ?>
<?php endif; ?>
</div>

<div class="akismet">
<h4>Akismet</h4>
<?php if ( is_plugin_active( 'akismet/akismet.php' ) ) : ?>
<h3><?php echo number_format_i18n( get_option( 'akismet_spam_count', 0 ) ); ?></h3>
<p><?php echo esc_html_x( 'Spam comments blocked by Akismet.', '{#} Spam comments blocked by Akismet -- number is on a prior line, text is a caption.', 'jetpack' ); ?></p>
<p><?php echo esc_html_x( 'Blocked spam comments.', '{#} Spam comments blocked by Akismet -- number is on a prior line, text is a caption.', 'jetpack' ); ?></p>
<?php elseif ( current_user_can( 'activate_plugins' ) && ! is_wp_error( validate_plugin( 'akismet/akismet.php' ) ) ) : ?>
<a href="
<?php
Expand Down

0 comments on commit 34fa871

Please sign in to comment.