Antispam Bee - Version 2.11.1

Version Description

Download this release

Release Info

Developer pluginkollektiv
Plugin Icon 128x128 Antispam Bee
Version 2.11.1
Comparing to
See all releases

Code changes from version 2.11.0 to 2.11.1

Files changed (3) hide show
  1. CHANGELOG.md +9 -0
  2. antispam_bee.php +5 -2
  3. readme.txt +6 -2
CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
  ## Changelog ##
2
 
 
 
 
 
 
 
 
 
 
3
  ### 2.11.0 ###
4
  * **English**
5
  * Fix: Allow empty comments if `allow_empty_comment` is set to true
1
  ## Changelog ##
2
 
3
+ ### 2.11.1 ###
4
+ * **English**
5
+ * Tweak: remove superfluous type attribute from inline script tag
6
+ * Maintenance: Tested up to WordPress 6.0
7
+
8
+ * **Deutsch**
9
+ * Tweak: Überflüssiges type-Attribut von script-Tag entfernt
10
+ * Wartung: Getestet mit WordPress 6.0
11
+
12
  ### 2.11.0 ###
13
  * **English**
14
  * Fix: Allow empty comments if `allow_empty_comment` is set to true
antispam_bee.php CHANGED
@@ -9,7 +9,7 @@
9
  * Domain Path: /lang
10
  * License: GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
- * Version: 2.11.0
13
  *
14
  * @package Antispam Bee
15
  **/
@@ -1272,7 +1272,10 @@ class Antispam_Bee {
1272
  if ( ! empty( $matches['id1'] ) || ! empty( $matches['id2'] ) ) {
1273
  $output .= 'id="' . self::get_secret_id_for_post( self::$_current_post_id ) . '" ';
1274
  if ( ! self::_is_amp() ) {
1275
- $id_script = '<script data-noptimize type="text/javascript">document.getElementById("comment").setAttribute( "id", "a' . substr( esc_js( md5( time() ) ), 0, 31 ) . '" );document.getElementById("' . esc_js( self::get_secret_id_for_post( self::$_current_post_id ) ) . '").setAttribute( "id", "comment" );</script>';
 
 
 
1276
  }
1277
  }
1278
 
9
  * Domain Path: /lang
10
  * License: GPLv2 or later
11
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
+ * Version: 2.11.1
13
  *
14
  * @package Antispam Bee
15
  **/
1272
  if ( ! empty( $matches['id1'] ) || ! empty( $matches['id2'] ) ) {
1273
  $output .= 'id="' . self::get_secret_id_for_post( self::$_current_post_id ) . '" ';
1274
  if ( ! self::_is_amp() ) {
1275
+ $id_script = '<script data-noptimize>' .
1276
+ 'document.getElementById("comment").setAttribute( "id", "a' . substr( esc_js( md5( time() ) ), 0, 31 ) . '" );' .
1277
+ 'document.getElementById("' . esc_js( self::get_secret_id_for_post( self::$_current_post_id ) ) . '").setAttribute( "id", "comment" );' .
1278
+ '</script>';
1279
  }
1280
  }
1281
 
readme.txt CHANGED
@@ -3,9 +3,9 @@
3
  * Tags: anti-spam, antispam, block spam, comment, comments, comment spam, pingback, spam, spam filter, trackback, GDPR
4
  * Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW
5
  * Requires at least: 4.5
6
- * Tested up to: 5.9
7
  * Requires PHP: 5.2
8
- * Stable tag: 2.11.0
9
  * License: GPLv2 or later
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -96,6 +96,10 @@ A complete documentation is available on [pluginkollektiv.org](https://antispamb
96
 
97
  ## Changelog ##
98
 
 
 
 
 
99
  ### 2.11.0 ###
100
  * Fix: Allow empty comments if `allow_empty_comment` is set to true
101
  * Fix: Add `aria-label` to work around bug in a11y testing tools
3
  * Tags: anti-spam, antispam, block spam, comment, comments, comment spam, pingback, spam, spam filter, trackback, GDPR
4
  * Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW
5
  * Requires at least: 4.5
6
+ * Tested up to: 6.0
7
  * Requires PHP: 5.2
8
+ * Stable tag: 2.11.1
9
  * License: GPLv2 or later
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
96
 
97
  ## Changelog ##
98
 
99
+ ### 2.11.1 ###
100
+ * Tweak: remove superfluous type attribute from inline script tag
101
+ * Maintenance: Tested up to WordPress 6.0
102
+
103
  ### 2.11.0 ###
104
  * Fix: Allow empty comments if `allow_empty_comment` is set to true
105
  * Fix: Add `aria-label` to work around bug in a11y testing tools