Email Address Encoder - Version 1.0.14

Version Description

  • Fixed Dashboard JavaScript issue
  • Blocked signup for more non-production domains
Download this release

Release Info

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

Code changes from version 1.0.13 to 1.0.14

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.13
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.14
7
  Author: Till Krüss
8
  Author URI: https://till.im/
9
  Text Domain: email-address-encoder
includes/admin.php CHANGED
@@ -166,7 +166,7 @@ function eae_enqueue_script() {
166
  wp_enqueue_script(
167
  'dismissible-notices',
168
  plugins_url( 'dismiss-notice.js', __FILE__ ),
169
- array( 'jquery', 'common' )
170
  );
171
  }
172
 
@@ -247,16 +247,13 @@ function eae_transmit_email() {
247
  if (
248
  $host === 'localhost' ||
249
  filter_var( $host, FILTER_VALIDATE_IP ) ||
250
- preg_match( '/\.(dev|test|local)$/', $host )
 
251
  ) {
252
  return add_settings_error(
253
  'eae_notify_email',
254
  'invalid',
255
- sprintf(
256
- __( 'Sorry, "%s" doesn’t appear to be a valid domain. Signup for automatic warnings using the <a href="%s">page scanner</a> instead.', 'email-address-encoder' ),
257
- $host,
258
- 'https://encoder.till.im/scanner?utm_source=wp-plugin&amp;utm_medium=subscribe-error'
259
- ),
260
  'error'
261
  );
262
  }
166
  wp_enqueue_script(
167
  'dismissible-notices',
168
  plugins_url( 'dismiss-notice.js', __FILE__ ),
169
+ array( 'jquery' )
170
  );
171
  }
172
 
247
  if (
248
  $host === 'localhost' ||
249
  filter_var( $host, FILTER_VALIDATE_IP ) ||
250
+ preg_match( '/\.(dev|test|local)$/', $host ) ||
251
+ preg_match( '/^(dev|test|staging)\./', $host )
252
  ) {
253
  return add_settings_error(
254
  'eae_notify_email',
255
  'invalid',
256
+ sprintf( __( 'Sorry, "%s" doesn’t appear to be a production domain.', 'email-address-encoder' ), $host ),
 
 
 
 
257
  'error'
258
  );
259
  }
includes/ui.php CHANGED
@@ -5,7 +5,7 @@
5
 
6
  <?php if ( get_option( 'eae_notices', '0' ) !== '1' && ( ! defined( 'EAE_DISABLE_NOTICES' ) || ! EAE_DISABLE_NOTICES ) ) : ?>
7
 
8
- <div class="card" style="float: left; margin-bottom: 0; margin-right: 1.5rem;">
9
  <h2 class="title">
10
  <?php _e( 'Signup for automatic warnings', 'email-address-encoder' ); ?>
11
  </h2>
5
 
6
  <?php if ( get_option( 'eae_notices', '0' ) !== '1' && ( ! defined( 'EAE_DISABLE_NOTICES' ) || ! EAE_DISABLE_NOTICES ) ) : ?>
7
 
8
+ <div class="card" style="float: left; margin-bottom: 0; margin-right: 1.25rem;">
9
  <h2 class="title">
10
  <?php _e( 'Signup for automatic warnings', 'email-address-encoder' ); ?>
11
  </h2>
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.13
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -67,10 +67,15 @@ You can use the "Page Scanner" found under _Settings -> Email Encoder_ to see wh
67
 
68
  == Changelog ==
69
 
 
 
 
 
 
70
  = 1.0.13 =
71
 
72
- * Resolve issue with WordPress 4.7 and older
73
- * Block signup for local domains and IP addresses
74
 
75
  = 1.0.12 =
76
 
5
  Requires at least: 2.0
6
  Tested up to: 5.0
7
  Requires PHP: 5.3
8
+ Stable tag: 1.0.14
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
67
 
68
  == Changelog ==
69
 
70
+ = 1.0.14 =
71
+
72
+ * Fixed Dashboard JavaScript issue
73
+ * Blocked signup for more non-production domains
74
+
75
  = 1.0.13 =
76
 
77
+ * Resolved issue with WordPress 4.7 and older
78
+ * Blocked signup for local domains and IP addresses
79
 
80
  = 1.0.12 =
81