Akismet Anti-Spam - Version 3.1.5

Version Description

Release Date - 13 October 2015

  • Closes a potential XSS vulnerability.
Download this release

Release Info

Developer cfinke
Plugin Icon 128x128 Akismet Anti-Spam
Version 3.1.5
Comparing to
See all releases

Code changes from version 3.1.4 to 3.1.5

Files changed (5) hide show
  1. _inc/akismet.css +5 -4
  2. _inc/akismet.js +1 -1
  3. akismet.php +2 -2
  4. class.akismet-admin.php +0 -13
  5. readme.txt +7 -2
_inc/akismet.css CHANGED
@@ -33,13 +33,14 @@
33
  color: #AAA;
34
  font-style: italic;
35
  }
36
- span.comment-link a {
37
  text-decoration: underline;
38
  }
39
- span.comment-link:after {
40
- content: " "attr(title) " ";
41
  color: #aaa;
42
- text-decoration: none;
 
43
  }
44
  .mshot-arrow {
45
  width: 0;
33
  color: #AAA;
34
  font-style: italic;
35
  }
36
+ table.comments td.comment p a {
37
  text-decoration: underline;
38
  }
39
+ table.comments td.comment p a:after {
40
+ content: attr(href);
41
  color: #aaa;
42
+ display: inline-block; /* Show the URL without the link's underline extending under it. */
43
+ padding: 0 1ex; /* Because it's inline block, we can't just use spaces in the content: attribute to separate it from the link text. */
44
  }
45
  .mshot-arrow {
46
  width: 0;
_inc/akismet.js CHANGED
@@ -107,7 +107,7 @@ jQuery( function ( $ ) {
107
  });
108
 
109
  // Show a preview image of the hovered URL. Applies to author URLs and URLs inside the comments.
110
- $( 'a[id^="author_comment_url"], tr.pingback td.column-author a:first-of-type, table.comments a.comment-link' ).mouseover( function () {
111
  clearTimeout( mshotRemovalTimer );
112
 
113
  if ( $( '.akismet-mshot' ).length > 0 ) {
107
  });
108
 
109
  // Show a preview image of the hovered URL. Applies to author URLs and URLs inside the comments.
110
+ $( 'a[id^="author_comment_url"], tr.pingback td.column-author a:first-of-type, table.comments td.comment p a' ).mouseover( function () {
111
  clearTimeout( mshotRemovalTimer );
112
 
113
  if ( $( '.akismet-mshot' ).length > 0 ) {
akismet.php CHANGED
@@ -6,7 +6,7 @@
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 spam</strong>. It keeps your site protected 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/">Sign up for an Akismet plan</a> to get an API key, and 3) Go to your Akismet configuration page, and save your API key.
9
- Version: 3.1.4
10
  Author: Automattic
11
  Author URI: http://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', '3.1.4' );
41
  define( 'AKISMET__MINIMUM_WP_VERSION', '3.2' );
42
  define( 'AKISMET__PLUGIN_URL', plugin_dir_url( __FILE__ ) );
43
  define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
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 spam</strong>. It keeps your site protected 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/">Sign up for an Akismet plan</a> to get an API key, and 3) Go to your Akismet configuration page, and save your API key.
9
+ Version: 3.1.5
10
  Author: Automattic
11
  Author URI: http://automattic.com/wordpress-plugins/
12
  License: GPLv2 or later
37
  exit;
38
  }
39
 
40
+ define( 'AKISMET_VERSION', '3.1.5' );
41
  define( 'AKISMET__MINIMUM_WP_VERSION', '3.2' );
42
  define( 'AKISMET__PLUGIN_URL', plugin_dir_url( __FILE__ ) );
43
  define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
class.akismet-admin.php CHANGED
@@ -41,7 +41,6 @@ class Akismet_Admin {
41
 
42
  add_filter( 'plugin_action_links', array( 'Akismet_Admin', 'plugin_action_links' ), 10, 2 );
43
  add_filter( 'comment_row_actions', array( 'Akismet_Admin', 'comment_row_action' ), 10, 2 );
44
- add_filter( 'comment_text', array( 'Akismet_Admin', 'text_add_link_class' ) );
45
 
46
  add_filter( 'plugin_action_links_'.plugin_basename( plugin_dir_path( __FILE__ ) . 'akismet.php'), array( 'Akismet_Admin', 'admin_plugin_settings_link' ) );
47
 
@@ -592,18 +591,6 @@ class Akismet_Admin {
592
  return $links;
593
  }
594
 
595
- public static function text_add_link_callback( $m ) {
596
- // bare link?
597
- if ( $m[4] == $m[2] )
598
- return '<a '.$m[1].' href="'.$m[2].'" '.$m[3].' class="comment-link">'.$m[4].'</a>';
599
- else
600
- return '<span title="'.$m[2].'" class="comment-link"><a '.$m[1].' href="'.$m[2].'" '.$m[3].' class="comment-link">'.$m[4].'</a></span>';
601
- }
602
-
603
- public static function text_add_link_class( $comment_text ) {
604
- return preg_replace_callback( '#<a ([^>]*)href="([^"]+)"([^>]*)>(.*?)</a>#i', array( 'Akismet_Admin', 'text_add_link_callback' ), $comment_text );
605
- }
606
-
607
  // Total spam in queue
608
  // get_option( 'akismet_spam_count' ) is the total caught ever
609
  public static function get_spam_count( $type = false ) {
41
 
42
  add_filter( 'plugin_action_links', array( 'Akismet_Admin', 'plugin_action_links' ), 10, 2 );
43
  add_filter( 'comment_row_actions', array( 'Akismet_Admin', 'comment_row_action' ), 10, 2 );
 
44
 
45
  add_filter( 'plugin_action_links_'.plugin_basename( plugin_dir_path( __FILE__ ) . 'akismet.php'), array( 'Akismet_Admin', 'admin_plugin_settings_link' ) );
46
 
591
  return $links;
592
  }
593
 
 
 
 
 
 
 
 
 
 
 
 
 
594
  // Total spam in queue
595
  // get_option( 'akismet_spam_count' ) is the total caught ever
596
  public static function get_spam_count( $type = false ) {
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: matt, ryan, andy, mdawaffe, tellyworth, josephscott, lessbloat, eoigal, cfinke, automattic, jgs
3
  Tags: akismet, comments, spam, antispam, anti-spam, anti spam, comment moderation, comment spam, contact form spam, spam comments
4
  Requires at least: 3.2
5
- Tested up to: 4.3
6
- Stable tag: 3.1.4
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.
@@ -30,6 +30,11 @@ Upload the Akismet plugin to your blog, Activate it, then enter your [Akismet.co
30
 
31
  == Changelog ==
32
 
 
 
 
 
 
33
  = 3.1.4 =
34
  *Release Date - 24 September 2015*
35
 
2
  Contributors: matt, ryan, andy, mdawaffe, tellyworth, josephscott, lessbloat, eoigal, cfinke, automattic, jgs
3
  Tags: akismet, comments, spam, antispam, anti-spam, anti spam, comment moderation, comment spam, contact form spam, spam comments
4
  Requires at least: 3.2
5
+ Tested up to: 4.3.1
6
+ Stable tag: 3.1.5
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.
30
 
31
  == Changelog ==
32
 
33
+ = 3.1.5 =
34
+ *Release Date - 13 October 2015*
35
+
36
+ * Closes a potential XSS vulnerability.
37
+
38
  = 3.1.4 =
39
  *Release Date - 24 September 2015*
40