Email Address Encoder - Version 1.0.12

Version Description

  • Avoid fatal error when using PHP 5.3 or lesser
Download this release

Release Info

Developer tillkruess
Plugin Icon 128x128 Email Address Encoder
Version 1.0.12
Comparing to
See all releases

Code changes from version 1.0.11 to 1.0.12

Files changed (3) hide show
  1. email-address-encoder.php +1 -1
  2. includes/admin.php +6 -6
  3. readme.txt +5 -1
email-address-encoder.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Email Address Encoder
4
  Plugin URI: https://encoder.till.im/
5
  Description: A lightweight plugin that protects email addresses from email-harvesting robots by encoding them into decimal and hexadecimal entities.
6
- Version: 1.0.11
7
  Author: Till Krüss
8
  Author URI: https://till.im/
9
  Text Domain: email-address-encoder
3
  Plugin Name: Email Address Encoder
4
  Plugin URI: https://encoder.till.im/
5
  Description: A lightweight plugin that protects email addresses from email-harvesting robots by encoding them into decimal and hexadecimal entities.
6
+ Version: 1.0.12
7
  Author: Till Krüss
8
  Author URI: https://till.im/
9
  Text Domain: email-address-encoder
includes/admin.php CHANGED
@@ -247,15 +247,15 @@ function eae_transmit_email() {
247
 
248
  check_admin_referer( 'subscribe' );
249
 
250
- $response = wp_remote_post( 'https://encoder.till.im/api/subscribe', [
251
- 'headers' => [
252
  'Accept' => 'application/json',
253
- ],
254
- 'body' => [
255
  'url' => get_home_url(),
256
  'email' => $_POST[ 'eae_notify_email' ],
257
- ],
258
- ] );
259
 
260
  if ( is_wp_error( $response ) || $response[ 'response' ][ 'code' ] !== 200 ) {
261
  add_settings_error(
247
 
248
  check_admin_referer( 'subscribe' );
249
 
250
+ $response = wp_remote_post( 'https://encoder.till.im/api/subscribe', array(
251
+ 'headers' => array(
252
  'Accept' => 'application/json',
253
+ ),
254
+ 'body' => array(
255
  'url' => get_home_url(),
256
  'email' => $_POST[ 'eae_notify_email' ],
257
+ ),
258
+ ) );
259
 
260
  if ( is_wp_error( $response ) || $response[ 'response' ][ 'code' ] !== 200 ) {
261
  add_settings_error(
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: antispam, anti spam, spam, email, e-mail, mail, spider, crawler, harvester
5
  Requires at least: 2.0
6
  Tested up to: 5.0
7
  Requires PHP: 5.3
8
- Stable tag: 1.0.11
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -67,6 +67,10 @@ You can use the "Page Scanner" found under _Settings -> Email Encoder_ to see wh
67
 
68
  == Changelog ==
69
 
 
 
 
 
70
  = 1.0.11 =
71
 
72
  * Added the ability to get notified when your site contains unprotected email addresses
5
  Requires at least: 2.0
6
  Tested up to: 5.0
7
  Requires PHP: 5.3
8
+ Stable tag: 1.0.12
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
67
 
68
  == Changelog ==
69
 
70
+ = 1.0.12 =
71
+
72
+ * Avoid fatal error when using PHP 5.3 or lesser
73
+
74
  = 1.0.11 =
75
 
76
  * Added the ability to get notified when your site contains unprotected email addresses