Version Description
Release Date - 31 January 2019
- Fixed the "Setup Akismet" notice so it resizes responsively.
- Only highlight the "Save Changes" button in the Akismet config when changes have been made.
- The count of comments in your spam queue shown on the dashboard show now always be up-to-date.
Download this release
Release Info
| Developer | procifer |
| Plugin | |
| Version | 4.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 4.1 to 4.1.1
- _inc/akismet.css +36 -1
- _inc/akismet.js +18 -0
- akismet.php +2 -2
- class.akismet.php +5 -0
- readme.txt +9 -2
- views/config.php +1 -1
- views/get.php +1 -1
- views/notice.php +1 -1
_inc/akismet.css
CHANGED
|
@@ -216,8 +216,16 @@ table.comments td.comment p a:after {
|
|
| 216 |
/**
|
| 217 |
* For the activation notice on the plugins page.
|
| 218 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 219 |
.akismet_activate {
|
| 220 |
-
min-width: 825px;
|
| 221 |
border: 1px solid #4F800D;
|
| 222 |
padding: 5px;
|
| 223 |
margin: 15px 0;
|
|
@@ -287,6 +295,7 @@ table.comments td.comment p a:after {
|
|
| 287 |
}
|
| 288 |
|
| 289 |
.akismet_activate .aa_button_container {
|
|
|
|
| 290 |
display: inline-block;
|
| 291 |
background: #DEF1B8;
|
| 292 |
padding: 5px;
|
|
@@ -311,6 +320,32 @@ table.comments td.comment p a:after {
|
|
| 311 |
font-weight: normal;
|
| 312 |
}
|
| 313 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 314 |
.jetpack_page_akismet-key-config #wpcontent, .settings_page_akismet-key-config #wpcontent {
|
| 315 |
padding-left: 0;
|
| 316 |
}
|
| 216 |
/**
|
| 217 |
* For the activation notice on the plugins page.
|
| 218 |
*/
|
| 219 |
+
|
| 220 |
+
#akismet_setup_prompt {
|
| 221 |
+
background: none;
|
| 222 |
+
border: none;
|
| 223 |
+
margin: 0;
|
| 224 |
+
padding: 0;
|
| 225 |
+
width: 100%;
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
.akismet_activate {
|
|
|
|
| 229 |
border: 1px solid #4F800D;
|
| 230 |
padding: 5px;
|
| 231 |
margin: 15px 0;
|
| 295 |
}
|
| 296 |
|
| 297 |
.akismet_activate .aa_button_container {
|
| 298 |
+
box-sizing: border-box;
|
| 299 |
display: inline-block;
|
| 300 |
background: #DEF1B8;
|
| 301 |
padding: 5px;
|
| 320 |
font-weight: normal;
|
| 321 |
}
|
| 322 |
|
| 323 |
+
@media (max-width: 550px) {
|
| 324 |
+
.akismet_activate .aa_a {
|
| 325 |
+
display: none;
|
| 326 |
+
}
|
| 327 |
+
|
| 328 |
+
.akismet_activate .aa_button_container {
|
| 329 |
+
width: 100%;
|
| 330 |
+
}
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
@media (max-width: 782px) {
|
| 334 |
+
.akismet_activate {
|
| 335 |
+
min-width: 0;
|
| 336 |
+
}
|
| 337 |
+
}
|
| 338 |
+
|
| 339 |
+
@media (max-width: 850px) {
|
| 340 |
+
#akismet_setup_prompt .aa_description {
|
| 341 |
+
display: none;
|
| 342 |
+
}
|
| 343 |
+
|
| 344 |
+
.akismet_activate {
|
| 345 |
+
min-width: 0;
|
| 346 |
+
}
|
| 347 |
+
}
|
| 348 |
+
|
| 349 |
.jetpack_page_akismet-key-config #wpcontent, .settings_page_akismet-key-config #wpcontent {
|
| 350 |
padding-left: 0;
|
| 351 |
}
|
_inc/akismet.js
CHANGED
|
@@ -282,4 +282,22 @@ jQuery( function ( $ ) {
|
|
| 282 |
url: './options-general.php?page=akismet-key-config&akismet_comment_form_privacy_notice=hide',
|
| 283 |
});
|
| 284 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 285 |
});
|
| 282 |
url: './options-general.php?page=akismet-key-config&akismet_comment_form_privacy_notice=hide',
|
| 283 |
});
|
| 284 |
});
|
| 285 |
+
|
| 286 |
+
$( ".akismet-could-be-primary" ).each( function () {
|
| 287 |
+
var form = $( this ).closest( 'form' );
|
| 288 |
+
|
| 289 |
+
form.data( 'initial-state', form.serialize() );
|
| 290 |
+
|
| 291 |
+
form.on( 'change keyup', function () {
|
| 292 |
+
var self = $( this );
|
| 293 |
+
var submit_button = self.find( ".akismet-could-be-primary" );
|
| 294 |
+
|
| 295 |
+
if ( self.serialize() != self.data( 'initial-state' ) ) {
|
| 296 |
+
submit_button.addClass( "akismet-is-primary" );
|
| 297 |
+
}
|
| 298 |
+
else {
|
| 299 |
+
submit_button.removeClass( "akismet-is-primary" );
|
| 300 |
+
}
|
| 301 |
+
} );
|
| 302 |
+
} );
|
| 303 |
});
|
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.1
|
| 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.1' );
|
| 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.1.1
|
| 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.1.1' );
|
| 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.php
CHANGED
|
@@ -575,6 +575,11 @@ class Akismet {
|
|
| 575 |
if ( $new_status == $old_status )
|
| 576 |
return;
|
| 577 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 578 |
# we don't need to record a history item for deleted comments
|
| 579 |
if ( $new_status == 'delete' )
|
| 580 |
return;
|
| 575 |
if ( $new_status == $old_status )
|
| 576 |
return;
|
| 577 |
|
| 578 |
+
if ( 'spam' === $new_status || 'spam' === $old_status ) {
|
| 579 |
+
// Clear the cache of the "X comments in your spam queue" count on the dashboard.
|
| 580 |
+
wp_cache_delete( 'akismet_spam_count', 'widget' );
|
| 581 |
+
}
|
| 582 |
+
|
| 583 |
# we don't need to record a history item for deleted comments
|
| 584 |
if ( $new_status == 'delete' )
|
| 585 |
return;
|
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: matt, ryan, andy, mdawaffe, tellyworth, josephscott, lessbloat, eoigal, cfinke, automattic, jgs, procifer, stephdau
|
| 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: 5.
|
| 6 |
-
Stable tag: 4.1
|
| 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.1 =
|
| 34 |
*Release Date - 12 November 2018*
|
| 35 |
|
| 2 |
Contributors: matt, ryan, andy, mdawaffe, tellyworth, josephscott, lessbloat, eoigal, cfinke, automattic, jgs, procifer, stephdau
|
| 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: 5.1
|
| 6 |
+
Stable tag: 4.1.1
|
| 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.1.1 =
|
| 34 |
+
*Release Date - 31 January 2019*
|
| 35 |
+
|
| 36 |
+
* Fixed the "Setup Akismet" notice so it resizes responsively.
|
| 37 |
+
* Only highlight the "Save Changes" button in the Akismet config when changes have been made.
|
| 38 |
+
* The count of comments in your spam queue shown on the dashboard show now always be up-to-date.
|
| 39 |
+
|
| 40 |
= 4.1 =
|
| 41 |
*Release Date - 12 November 2018*
|
| 42 |
|
views/config.php
CHANGED
|
@@ -173,7 +173,7 @@
|
|
| 173 |
<?php wp_nonce_field(Akismet_Admin::NONCE) ?>
|
| 174 |
<div id="publishing-action">
|
| 175 |
<input type="hidden" name="action" value="enter-key">
|
| 176 |
-
<input type="submit" name="submit" id="submit" class="akismet-button akismet-
|
| 177 |
</div>
|
| 178 |
<div class="clear"></div>
|
| 179 |
</div>
|
| 173 |
<?php wp_nonce_field(Akismet_Admin::NONCE) ?>
|
| 174 |
<div id="publishing-action">
|
| 175 |
<input type="hidden" name="action" value="enter-key">
|
| 176 |
+
<input type="submit" name="submit" id="submit" class="akismet-button akismet-could-be-primary" value="<?php esc_attr_e('Save Changes', 'akismet');?>">
|
| 177 |
</div>
|
| 178 |
<div class="clear"></div>
|
| 179 |
</div>
|
views/get.php
CHANGED
|
@@ -2,5 +2,5 @@
|
|
| 2 |
<input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
|
| 3 |
<input type="hidden" name="blog" value="<?php echo esc_url( get_option( 'home' ) ); ?>"/>
|
| 4 |
<input type="hidden" name="redirect" value="<?php echo isset( $redirect ) ? $redirect : 'plugin-signup'; ?>"/>
|
| 5 |
-
<input type="submit" class="<?php echo isset( $classes ) && count( $classes ) > 0 ? implode( ' ', $classes ) : 'akismet-button
|
| 6 |
</form>
|
| 2 |
<input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
|
| 3 |
<input type="hidden" name="blog" value="<?php echo esc_url( get_option( 'home' ) ); ?>"/>
|
| 4 |
<input type="hidden" name="redirect" value="<?php echo isset( $redirect ) ? $redirect : 'plugin-signup'; ?>"/>
|
| 5 |
+
<input type="submit" class="<?php echo isset( $classes ) && count( $classes ) > 0 ? implode( ' ', $classes ) : 'akismet-button';?>" value="<?php echo esc_attr( $text ); ?>"/>
|
| 6 |
</form>
|
views/notice.php
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
<?php if ( $type == 'plugin' ) :?>
|
| 2 |
-
<div class="updated"
|
| 3 |
<form name="akismet_activate" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
|
| 4 |
<div class="akismet_activate">
|
| 5 |
<div class="aa_a">A</div>
|
| 1 |
<?php if ( $type == 'plugin' ) :?>
|
| 2 |
+
<div class="updated" id="akismet_setup_prompt">
|
| 3 |
<form name="akismet_activate" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
|
| 4 |
<div class="akismet_activate">
|
| 5 |
<div class="aa_a">A</div>
|
