Akismet Anti-Spam - Version 4.0.7

Version Description

Release Date - 28 May 2018

  • Based on user feedback, the link on "Learn how your comment data is processed." in the optional privacy notice now has a target of _blank and opens in a new tab/window.
  • Updated the in-admin privacy notice to use the term "comment" instead of "contact" in "Akismet can display a notice to your users under your comment forms."
  • Only show in-admin privacy notice if Akismet has an API Key configured
Download this release

Release Info

Developer procifer
Plugin Icon 128x128 Akismet Anti-Spam
Version 4.0.7
Comparing to
See all releases

Code changes from version 4.0.6 to 4.0.7

akismet.php CHANGED
@@ -6,7 +6,7 @@
6
  Plugin Name: Akismet Anti-Spam
7
  Plugin URI: https://akismet.com/
8
  Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.
9
- Version: 4.0.6
10
  Author: Automattic
11
  Author URI: https://automattic.com/wordpress-plugins/
12
  License: GPLv2 or later
@@ -37,7 +37,7 @@ if ( !function_exists( 'add_action' ) ) {
37
  exit;
38
  }
39
 
40
- define( 'AKISMET_VERSION', '4.0.6' );
41
  define( 'AKISMET__MINIMUM_WP_VERSION', '4.0' );
42
  define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
43
  define( 'AKISMET_DELETE_LIMIT', 100000 );
6
  Plugin Name: Akismet Anti-Spam
7
  Plugin URI: https://akismet.com/
8
  Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.
9
+ Version: 4.0.7
10
  Author: Automattic
11
  Author URI: https://automattic.com/wordpress-plugins/
12
  License: GPLv2 or later
37
  exit;
38
  }
39
 
40
+ define( 'AKISMET_VERSION', '4.0.7' );
41
  define( 'AKISMET__MINIMUM_WP_VERSION', '4.0' );
42
  define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
43
  define( 'AKISMET_DELETE_LIMIT', 100000 );
class.akismet-admin.php CHANGED
@@ -1061,7 +1061,10 @@ class Akismet_Admin {
1061
 
1062
  $akismet_comment_form_privacy_notice_option = get_option( 'akismet_comment_form_privacy_notice' );
1063
  if ( ! in_array( $akismet_comment_form_privacy_notice_option, array( 'hide', 'display' ) ) ) {
1064
- self::display_privacy_notice_control_warning();
 
 
 
1065
  }
1066
  }
1067
 
1061
 
1062
  $akismet_comment_form_privacy_notice_option = get_option( 'akismet_comment_form_privacy_notice' );
1063
  if ( ! in_array( $akismet_comment_form_privacy_notice_option, array( 'hide', 'display' ) ) ) {
1064
+ $api_key = Akismet::get_api_key();
1065
+ if ( ! empty( $api_key ) ) {
1066
+ self::display_privacy_notice_control_warning();
1067
+ }
1068
  }
1069
  }
1070
 
class.akismet.php CHANGED
@@ -1416,7 +1416,7 @@ p {
1416
  echo apply_filters(
1417
  'akismet_comment_form_privacy_notice_markup',
1418
  '<p class="akismet_comment_form_privacy_notice">' . sprintf(
1419
- __( 'This site uses Akismet to reduce spam. <a href="%s">Learn how your comment data is processed</a>.', 'akismet' ),
1420
  'https://akismet.com/privacy/'
1421
  ) . '</p>'
1422
  );
1416
  echo apply_filters(
1417
  'akismet_comment_form_privacy_notice_markup',
1418
  '<p class="akismet_comment_form_privacy_notice">' . sprintf(
1419
+ __( 'This site uses Akismet to reduce spam. <a href="%s" target="_blank">Learn how your comment data is processed</a>.', 'akismet' ),
1420
  'https://akismet.com/privacy/'
1421
  ) . '</p>'
1422
  );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: matt, ryan, andy, mdawaffe, tellyworth, josephscott, lessbloat, eo
3
  Tags: akismet, comments, spam, antispam, anti-spam, anti spam, comment moderation, comment spam, contact form spam, spam comments
4
  Requires at least: 4.0
5
  Tested up to: 4.9.6
6
- Stable tag: 4.0.6
7
  License: GPLv2 or later
8
 
9
  Akismet checks your comments and contact form submissions against our global database of spam to protect you and your site from malicious content.
@@ -30,6 +30,13 @@ Upload the Akismet plugin to your blog, Activate it, then enter your [Akismet.co
30
 
31
  == Changelog ==
32
 
 
 
 
 
 
 
 
33
  = 4.0.6 =
34
  *Release Date - 26 May 2018*
35
 
3
  Tags: akismet, comments, spam, antispam, anti-spam, anti spam, comment moderation, comment spam, contact form spam, spam comments
4
  Requires at least: 4.0
5
  Tested up to: 4.9.6
6
+ Stable tag: 4.0.7
7
  License: GPLv2 or later
8
 
9
  Akismet checks your comments and contact form submissions against our global database of spam to protect you and your site from malicious content.
30
 
31
  == Changelog ==
32
 
33
+ = 4.0.7 =
34
+ *Release Date - 28 May 2018*
35
+
36
+ * Based on user feedback, the link on "Learn how your comment data is processed." in the optional privacy notice now has a `target` of `_blank` and opens in a new tab/window.
37
+ * Updated the in-admin privacy notice to use the term "comment" instead of "contact" in "Akismet can display a notice to your users under your comment forms."
38
+ * Only show in-admin privacy notice if Akismet has an API Key configured
39
+
40
  = 4.0.6 =
41
  *Release Date - 26 May 2018*
42
 
views/notice.php CHANGED
@@ -135,7 +135,7 @@
135
  <?php elseif ( $type == 'privacy' ) :?>
136
  <div class="notice notice-warning is-dismissible" id="akismet-privacy-notice-admin-notice">
137
  <p><strong><?php esc_html_e( 'Akismet & Privacy.', 'akismet' );?></strong></p>
138
- <p><?php esc_html_e( 'To help your site be compliant with GDPR and other laws requiring notification of tracking, Akismet can display a notice to your users on your contact form. This feature is disabled by default, however, if you or your audience is located in Europe, you need to turn it on.', 'akismet' ); ?></p>
139
  <p><?php printf( __(' Please <a href="%s">enable</a> or <a href="%s">disable</a> this feature. <a href="%s" id="akismet-privacy-notice-control-notice-info-link" target="_blank">More information</a>.', 'akismet' ), admin_url( apply_filters( 'akismet_comment_form_privacy_notice_url_display', 'options-general.php?page=akismet-key-config&akismet_comment_form_privacy_notice=display' ) ), admin_url( apply_filters( 'akismet_comment_form_privacy_notice_url_hide', 'options-general.php?page=akismet-key-config&akismet_comment_form_privacy_notice=hide' ) ), 'https://akismet.com/privacy/' ); ?></p>
140
  </div>
141
  <?php endif;?>
135
  <?php elseif ( $type == 'privacy' ) :?>
136
  <div class="notice notice-warning is-dismissible" id="akismet-privacy-notice-admin-notice">
137
  <p><strong><?php esc_html_e( 'Akismet & Privacy.', 'akismet' );?></strong></p>
138
+ <p><?php esc_html_e( 'To help your site be compliant with GDPR and other laws requiring notification of tracking, Akismet can display a notice to your users under your comment forms. This feature is disabled by default, however, if you or your audience is located in Europe, you need to turn it on.', 'akismet' ); ?></p>
139
  <p><?php printf( __(' Please <a href="%s">enable</a> or <a href="%s">disable</a> this feature. <a href="%s" id="akismet-privacy-notice-control-notice-info-link" target="_blank">More information</a>.', 'akismet' ), admin_url( apply_filters( 'akismet_comment_form_privacy_notice_url_display', 'options-general.php?page=akismet-key-config&akismet_comment_form_privacy_notice=display' ) ), admin_url( apply_filters( 'akismet_comment_form_privacy_notice_url_hide', 'options-general.php?page=akismet-key-config&akismet_comment_form_privacy_notice=hide' ) ), 'https://akismet.com/privacy/' ); ?></p>
140
  </div>
141
  <?php endif;?>