Version Description
- Fix a global warning introduced in 2.2.5
- Add changelog and additional readme.txt tags
- Fix an array conversion warning in some versions of PHP
- Support a new WPCOM_API_KEY constant for easier use with WordPress MU
Download this release
Release Info
Developer | tellyworth |
Plugin | Akismet Anti-Spam |
Version | 2.2.6 |
Comparing to | |
See all releases |
Code changes from version 2.2.5 to 2.2.6
- akismet.php +7 -3
- readme.txt +21 -1
akismet.php
CHANGED
@@ -3,13 +3,16 @@
|
|
3 |
Plugin Name: Akismet
|
4 |
Plugin URI: http://akismet.com/
|
5 |
Description: Akismet checks your comments against the Akismet web service to see if they look like spam or not. You need a <a href="http://wordpress.com/api-keys/">WordPress.com API key</a> to use it. You can review the spam it catches under "Comments." To show off your Akismet stats just put <code><?php akismet_counter(); ?></code> in your template. See also: <a href="http://wordpress.org/extend/plugins/stats/">WP Stats plugin</a>.
|
6 |
-
Version: 2.2.
|
7 |
Author: Matt Mullenweg
|
8 |
Author URI: http://ma.tt/
|
9 |
*/
|
10 |
|
11 |
// If you hardcode a WP.com API key here, all key config screens will be hidden
|
12 |
-
|
|
|
|
|
|
|
13 |
|
14 |
function akismet_init() {
|
15 |
global $wpcom_api_key, $akismet_api_host, $akismet_api_port;
|
@@ -315,6 +318,7 @@ function akismet_server_connectivity_ok() {
|
|
315 |
}
|
316 |
|
317 |
function akismet_admin_warnings() {
|
|
|
318 |
if ( !get_option('wordpress_api_key') && !$wpcom_api_key && !isset($_POST['submit']) ) {
|
319 |
function akismet_warning() {
|
320 |
echo "
|
@@ -406,7 +410,7 @@ function akismet_auto_check_comment( $comment ) {
|
|
406 |
$ignore = array( 'HTTP_COOKIE' );
|
407 |
|
408 |
foreach ( $_SERVER as $key => $value )
|
409 |
-
if ( !in_array( $key, $ignore ) )
|
410 |
$comment["$key"] = $value;
|
411 |
|
412 |
$query_string = '';
|
3 |
Plugin Name: Akismet
|
4 |
Plugin URI: http://akismet.com/
|
5 |
Description: Akismet checks your comments against the Akismet web service to see if they look like spam or not. You need a <a href="http://wordpress.com/api-keys/">WordPress.com API key</a> to use it. You can review the spam it catches under "Comments." To show off your Akismet stats just put <code><?php akismet_counter(); ?></code> in your template. See also: <a href="http://wordpress.org/extend/plugins/stats/">WP Stats plugin</a>.
|
6 |
+
Version: 2.2.6
|
7 |
Author: Matt Mullenweg
|
8 |
Author URI: http://ma.tt/
|
9 |
*/
|
10 |
|
11 |
// If you hardcode a WP.com API key here, all key config screens will be hidden
|
12 |
+
if ( defined('WPCOM_API_KEY') )
|
13 |
+
$wpcom_api_key = constant('WPCOM_API_KEY');
|
14 |
+
else
|
15 |
+
$wpcom_api_key = '';
|
16 |
|
17 |
function akismet_init() {
|
18 |
global $wpcom_api_key, $akismet_api_host, $akismet_api_port;
|
318 |
}
|
319 |
|
320 |
function akismet_admin_warnings() {
|
321 |
+
global $wpcom_api_key;
|
322 |
if ( !get_option('wordpress_api_key') && !$wpcom_api_key && !isset($_POST['submit']) ) {
|
323 |
function akismet_warning() {
|
324 |
echo "
|
410 |
$ignore = array( 'HTTP_COOKIE' );
|
411 |
|
412 |
foreach ( $_SERVER as $key => $value )
|
413 |
+
if ( !in_array( $key, $ignore ) && is_string($value) )
|
414 |
$comment["$key"] = $value;
|
415 |
|
416 |
$query_string = '';
|
readme.txt
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
=== Akismet ===
|
2 |
-
Contributors: matt, ryan, andy, mdawaffe
|
3 |
Tags: akismet, comments, spam
|
|
|
|
|
4 |
|
5 |
Akismet checks your comments against the Akismet web service to see if they look like spam or not.
|
6 |
|
@@ -20,3 +22,21 @@ PS: You'll need a [WordPress.com API key](http://wordpress.com/api-keys/) to use
|
|
20 |
Upload the Akismet plugin to your blog, Activate it, then enter your [WordPress.com API key](http://wordpress.com/api-keys/).
|
21 |
|
22 |
1, 2, 3: You're done!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
=== Akismet ===
|
2 |
+
Contributors: matt, ryan, andy, mdawaffe, tellyworth
|
3 |
Tags: akismet, comments, spam
|
4 |
+
Requires at least: 2.0
|
5 |
+
Tested up to: 2.8.2
|
6 |
|
7 |
Akismet checks your comments against the Akismet web service to see if they look like spam or not.
|
8 |
|
22 |
Upload the Akismet plugin to your blog, Activate it, then enter your [WordPress.com API key](http://wordpress.com/api-keys/).
|
23 |
|
24 |
1, 2, 3: You're done!
|
25 |
+
|
26 |
+
== Changelog ==
|
27 |
+
|
28 |
+
= 2.2.6 =
|
29 |
+
|
30 |
+
* Fix a global warning introduced in 2.2.5
|
31 |
+
* Add changelog and additional readme.txt tags
|
32 |
+
* Fix an array conversion warning in some versions of PHP
|
33 |
+
* Support a new WPCOM_API_KEY constant for easier use with WordPress MU
|
34 |
+
|
35 |
+
= 2.2.5 =
|
36 |
+
|
37 |
+
* Include a new Server Connectivity diagnostic check, to detect problems caused by firewalls
|
38 |
+
|
39 |
+
= 2.2.4 =
|
40 |
+
|
41 |
+
* Fixed a key problem affecting the stats feature in WordPress MU
|
42 |
+
* Provide additional blog information in Akismet API calls
|