Akismet Anti-Spam - Version 2.5.3

Version Description

  • Specify the license is GPL v2 or later
  • Fix a bug that could result in orphaned commentmeta entries
  • Include hotfix for WordPress 3.0.5 filter issue
Download this release

Release Info

Developer josephscott
Plugin Icon 128x128 Akismet Anti-Spam
Version 2.5.3
Comparing to
See all releases

Code changes from version 2.5.2 to 2.5.3

Files changed (3) hide show
  1. admin.php +4 -0
  2. akismet.php +10 -4
  3. readme.txt +7 -2
admin.php CHANGED
@@ -578,6 +578,10 @@ function akismet_submit_spam_comment ( $comment_id ) {
578
  function akismet_transition_comment_status( $new_status, $old_status, $comment ) {
579
  if ( $new_status == $old_status )
580
  return;
 
 
 
 
581
 
582
  if ( !is_admin() )
583
  return;
578
  function akismet_transition_comment_status( $new_status, $old_status, $comment ) {
579
  if ( $new_status == $old_status )
580
  return;
581
+
582
+ # we don't need to record a history item for deleted comments
583
+ if ( $new_status == 'delete' )
584
+ return;
585
 
586
  if ( !is_admin() )
587
  return;
akismet.php CHANGED
@@ -5,11 +5,11 @@
5
  /*
6
  Plugin Name: Akismet
7
  Plugin URI: http://akismet.com/
8
- Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from comment and track-back spam</strong>. It keeps your site protected from spam even while you sleep. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="http://akismet.com/get/?return=true">Sign up for an Akismet API key</a>, and 3) Go to your <a href="plugins.php?page=akismet-key-config">Akismet configuration</a> page, and save your API key.
9
- Version: 2.5.2
10
  Author: Automattic
11
  Author URI: http://automattic.com/wordpress-plugins/
12
- License: GPLv2
13
  */
14
 
15
  /*
@@ -28,7 +28,7 @@ along with this program; if not, write to the Free Software
28
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
  */
30
 
31
- define('AKISMET_VERSION', '2.5.2');
32
  define('AKISMET_PLUGIN_URL', plugin_dir_url( __FILE__ ));
33
 
34
  /** If you hardcode a WP.com API key here, all key config screens will be hidden */
@@ -504,3 +504,9 @@ $akismet_comment_nonce_option = apply_filters( 'akismet_comment_nonce', get_opti
504
 
505
  if ( $akismet_comment_nonce_option == 'true' || $akismet_comment_nonce_option == '' )
506
  add_action( 'comment_form', 'akismet_add_comment_nonce' );
 
 
 
 
 
 
5
  /*
6
  Plugin Name: Akismet
7
  Plugin URI: http://akismet.com/
8
+ Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from comment and trackback spam</strong>. It keeps your site protected from spam even while you sleep. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="http://akismet.com/get/?return=true">Sign up for an Akismet API key</a>, and 3) Go to your <a href="plugins.php?page=akismet-key-config">Akismet configuration</a> page, and save your API key.
9
+ Version: 2.5.3
10
  Author: Automattic
11
  Author URI: http://automattic.com/wordpress-plugins/
12
+ License: GPLv2 or later
13
  */
14
 
15
  /*
28
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
  */
30
 
31
+ define('AKISMET_VERSION', '2.5.3');
32
  define('AKISMET_PLUGIN_URL', plugin_dir_url( __FILE__ ));
33
 
34
  /** If you hardcode a WP.com API key here, all key config screens will be hidden */
504
 
505
  if ( $akismet_comment_nonce_option == 'true' || $akismet_comment_nonce_option == '' )
506
  add_action( 'comment_form', 'akismet_add_comment_nonce' );
507
+
508
+ if ( '3.0.5' == $wp_version ) {
509
+ remove_filter( 'comment_text', 'wp_kses_data' );
510
+ if ( is_admin() )
511
+ add_filter( 'comment_text', 'wp_kses_post' );
512
+ }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: matt, ryan, andy, mdawaffe, tellyworth, josephscott, lessbloat, au
3
  Tags: akismet, comments, spam
4
  Requires at least: 3.0
5
  Tested up to: 3.1
6
- Stable tag: 2.5.2
7
- License: GPLv2
8
 
9
  Akismet checks your comments against the Akismet web service to see if they look like spam or not.
10
 
@@ -31,6 +31,11 @@ Upload the Akismet plugin to your blog, Activate it, then enter your [Akismet.co
31
 
32
  == Changelog ==
33
 
 
 
 
 
 
34
  = 2.5.2 =
35
 
36
  * Properly format the comment count for author counts
3
  Tags: akismet, comments, spam
4
  Requires at least: 3.0
5
  Tested up to: 3.1
6
+ Stable tag: 2.5.3
7
+ License: GPLv2 or later
8
 
9
  Akismet checks your comments against the Akismet web service to see if they look like spam or not.
10
 
31
 
32
  == Changelog ==
33
 
34
+ = 2.5.3 =
35
+ * Specify the license is GPL v2 or later
36
+ * Fix a bug that could result in orphaned commentmeta entries
37
+ * Include hotfix for WordPress 3.0.5 filter issue
38
+
39
  = 2.5.2 =
40
 
41
  * Properly format the comment count for author counts