Version Description
Release Date - 1 December 2022
- Improved compatibility with themes that hide or show UI elements based on mouse movements.
- Increased security of API keys by sending them in request bodies instead of subdomains.
Download this release
Release Info
Developer | cfinke |
Plugin | Akismet Anti-Spam |
Version | 5.0.2 |
Comparing to | |
See all releases |
Code changes from version 5.0.1 to 5.0.2
- _inc/akismet-frontend.js +4 -4
- akismet.php +2 -2
- class.akismet.php +4 -5
- readme.txt +8 -2
- views/config.php +1 -1
_inc/akismet-frontend.js
CHANGED
@@ -251,7 +251,7 @@
|
|
251 |
}
|
252 |
|
253 |
mousemoveTimer = setTimeout( function ( theEvent, originalMousemoveStart ) {
|
254 |
-
var now = ( new Date() ).getTime() -
|
255 |
|
256 |
var mousemove = [];
|
257 |
mousemove.push( now - originalMousemoveStart );
|
@@ -271,7 +271,7 @@
|
|
271 |
|
272 |
mousemoveStart = null;
|
273 |
mousemoveTimer = null;
|
274 |
-
},
|
275 |
}, supportsPassive ? { passive: true } : false );
|
276 |
|
277 |
document.addEventListener( 'touchmove', function ( e ) {
|
@@ -281,7 +281,7 @@
|
|
281 |
|
282 |
touchmoveCountTimer = setTimeout( function () {
|
283 |
touchmoveCount++;
|
284 |
-
},
|
285 |
}, supportsPassive ? { passive: true } : false );
|
286 |
|
287 |
document.addEventListener( 'touchstart', function ( e ) {
|
@@ -320,7 +320,7 @@
|
|
320 |
|
321 |
scrollCountTimer = setTimeout( function () {
|
322 |
scrollCount++;
|
323 |
-
},
|
324 |
}, supportsPassive ? { passive: true } : false );
|
325 |
}
|
326 |
|
251 |
}
|
252 |
|
253 |
mousemoveTimer = setTimeout( function ( theEvent, originalMousemoveStart ) {
|
254 |
+
var now = ( new Date() ).getTime() - 500; // To account for the timer delay.
|
255 |
|
256 |
var mousemove = [];
|
257 |
mousemove.push( now - originalMousemoveStart );
|
271 |
|
272 |
mousemoveStart = null;
|
273 |
mousemoveTimer = null;
|
274 |
+
}, 500, e, mousemoveStart );
|
275 |
}, supportsPassive ? { passive: true } : false );
|
276 |
|
277 |
document.addEventListener( 'touchmove', function ( e ) {
|
281 |
|
282 |
touchmoveCountTimer = setTimeout( function () {
|
283 |
touchmoveCount++;
|
284 |
+
}, 500 );
|
285 |
}, supportsPassive ? { passive: true } : false );
|
286 |
|
287 |
document.addEventListener( 'touchstart', function ( e ) {
|
320 |
|
321 |
scrollCountTimer = setTimeout( function () {
|
322 |
scrollCount++;
|
323 |
+
}, 500 );
|
324 |
}, supportsPassive ? { passive: true } : false );
|
325 |
}
|
326 |
|
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: 5.0.
|
10 |
Requires at least: 5.0
|
11 |
Requires PHP: 5.2
|
12 |
Author: Automattic
|
@@ -39,7 +39,7 @@ if ( !function_exists( 'add_action' ) ) {
|
|
39 |
exit;
|
40 |
}
|
41 |
|
42 |
-
define( 'AKISMET_VERSION', '5.0.
|
43 |
define( 'AKISMET__MINIMUM_WP_VERSION', '5.0' );
|
44 |
define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
45 |
define( 'AKISMET_DELETE_LIMIT', 10000 );
|
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: 5.0.2
|
10 |
Requires at least: 5.0
|
11 |
Requires PHP: 5.2
|
12 |
Author: Automattic
|
39 |
exit;
|
40 |
}
|
41 |
|
42 |
+
define( 'AKISMET_VERSION', '5.0.2' );
|
43 |
define( 'AKISMET__MINIMUM_WP_VERSION', '5.0' );
|
44 |
define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
45 |
define( 'AKISMET_DELETE_LIMIT', 10000 );
|
class.akismet.php
CHANGED
@@ -1218,13 +1218,12 @@ class Akismet {
|
|
1218 |
$akismet_ua = sprintf( 'WordPress/%s | Akismet/%s', $GLOBALS['wp_version'], constant( 'AKISMET_VERSION' ) );
|
1219 |
$akismet_ua = apply_filters( 'akismet_ua', $akismet_ua );
|
1220 |
|
1221 |
-
$content_length = strlen( $request );
|
1222 |
-
|
1223 |
-
$api_key = self::get_api_key();
|
1224 |
$host = self::API_HOST;
|
|
|
1225 |
|
1226 |
-
if (
|
1227 |
-
$
|
|
|
1228 |
|
1229 |
$http_host = $host;
|
1230 |
// use a specific IP if provided
|
1218 |
$akismet_ua = sprintf( 'WordPress/%s | Akismet/%s', $GLOBALS['wp_version'], constant( 'AKISMET_VERSION' ) );
|
1219 |
$akismet_ua = apply_filters( 'akismet_ua', $akismet_ua );
|
1220 |
|
|
|
|
|
|
|
1221 |
$host = self::API_HOST;
|
1222 |
+
$api_key = self::get_api_key();
|
1223 |
|
1224 |
+
if ( $api_key ) {
|
1225 |
+
$request = add_query_arg( 'api_key', $api_key, $request );
|
1226 |
+
}
|
1227 |
|
1228 |
$http_host = $host;
|
1229 |
// use a specific IP if provided
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: matt, ryan, andy, mdawaffe, tellyworth, josephscott, lessbloat, eoigal, cfinke, automattic, jgs, procifer, stephdau, kbrownkd
|
3 |
Tags: comments, spam, antispam, anti-spam, contact form, anti spam, comment moderation, comment spam, contact form spam, spam comments
|
4 |
Requires at least: 5.0
|
5 |
-
Tested up to: 6.1
|
6 |
-
Stable tag: 5.0.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam solution for WordPress and WooCommerce.
|
@@ -30,6 +30,12 @@ Upload the Akismet plugin to your blog, activate it, and then enter your Akismet
|
|
30 |
|
31 |
== Changelog ==
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
= 5.0.1 =
|
34 |
*Release Date - 28 September 2022*
|
35 |
|
2 |
Contributors: matt, ryan, andy, mdawaffe, tellyworth, josephscott, lessbloat, eoigal, cfinke, automattic, jgs, procifer, stephdau, kbrownkd
|
3 |
Tags: comments, spam, antispam, anti-spam, contact form, anti spam, comment moderation, comment spam, contact form spam, spam comments
|
4 |
Requires at least: 5.0
|
5 |
+
Tested up to: 6.1.1
|
6 |
+
Stable tag: 5.0.2
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam solution for WordPress and WooCommerce.
|
30 |
|
31 |
== Changelog ==
|
32 |
|
33 |
+
= 5.0.2 =
|
34 |
+
*Release Date - 1 December 2022*
|
35 |
+
|
36 |
+
* Improved compatibility with themes that hide or show UI elements based on mouse movements.
|
37 |
+
* Increased security of API keys by sending them in request bodies instead of subdomains.
|
38 |
+
|
39 |
= 5.0.1 =
|
40 |
*Release Date - 28 September 2022*
|
41 |
|
views/config.php
CHANGED
@@ -62,7 +62,7 @@
|
|
62 |
<?php else : ?>
|
63 |
</div> <!-- close akismet-section-header -->
|
64 |
<div class="inside">
|
65 |
-
<p
|
66 |
</div>
|
67 |
<?php endif; ?>
|
68 |
|
62 |
<?php else : ?>
|
63 |
</div> <!-- close akismet-section-header -->
|
64 |
<div class="inside">
|
65 |
+
<p><?php esc_html_e( 'Akismet is active and ready to stop spam. Your site’s spam statistics will be displayed here.', 'akismet' ); ?></p>
|
66 |
</div>
|
67 |
<?php endif; ?>
|
68 |
|