Email Address Encoder - Version 0.19.0

Version Description

Download this release

Release Info

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

Code changes from version 1.0.18 to 0.19.0

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.18
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.19
7
  Author: Till Krüss
8
  Author URI: https://till.im/
9
  Text Domain: email-address-encoder
includes/admin.php CHANGED
@@ -199,18 +199,16 @@ function eae_enqueue_scripts() {
199
 
200
  add_action( 'wp_footer', 'eae_adminbar_styles' );
201
 
202
- wp_enqueue_script(
203
- 'email-detector',
204
- plugins_url( 'email-detector.js', __FILE__ ),
205
- null,
206
- false,
207
- true
208
- );
209
 
210
  wp_localize_script( 'email-detector', 'eae_detector', array(
211
  'one_email' => __( '1 Unprotected Email', 'email-address-encoder' ),
212
  'many_emails' => __( '{number} Unprotected Emails', 'email-address-encoder' ),
213
  ) );
 
 
214
  }
215
 
216
  /**
@@ -224,6 +222,19 @@ function eae_adminbar_styles() {
224
  echo "\n<style type=\"text/css\">{$styles}</style>\n";
225
  }
226
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  /**
228
  * Callback to add dismissible notices script on Dashboard screen.
229
  *
199
 
200
  add_action( 'wp_footer', 'eae_adminbar_styles' );
201
 
202
+ $version = get_file_data( __DIR__ . '/../email-address-encoder.php', array( 'Version' => 'Version' ) );
203
+
204
+ wp_enqueue_script( 'email-detector', plugins_url( 'email-detector.js', __FILE__ ), null, $version[ 'Version' ], true );
 
 
 
 
205
 
206
  wp_localize_script( 'email-detector', 'eae_detector', array(
207
  'one_email' => __( '1 Unprotected Email', 'email-address-encoder' ),
208
  'many_emails' => __( '{number} Unprotected Emails', 'email-address-encoder' ),
209
  ) );
210
+
211
+ add_filter( 'script_loader_tag', 'eae_defer_script', 10, 2 );
212
  }
213
 
214
  /**
222
  echo "\n<style type=\"text/css\">{$styles}</style>\n";
223
  }
224
 
225
+ /**
226
+ * Defer email detector script.
227
+ *
228
+ * @return void
229
+ */
230
+ function eae_defer_script( $tag, $handle ) {
231
+ if ( $handle === 'email-detector' ) {
232
+ return str_replace( ' src', ' defer="defer" src', $tag );
233
+ }
234
+
235
+ return $tag;
236
+ }
237
+
238
  /**
239
  * Callback to add dismissible notices script on Dashboard screen.
240
  *
includes/ui.php CHANGED
@@ -123,6 +123,15 @@
123
  </p>
124
  </label>
125
 
 
 
 
 
 
 
 
 
 
126
  </fieldset>
127
  </td>
128
  </tr>
123
  </p>
124
  </label>
125
 
126
+ <label>
127
+ <input type="radio" name="eae_technique" value="rot47" disabled>
128
+ <?php _e( 'Polymorphous ROT47/CSS', 'email-address-encoder' ); ?>
129
+ (<a target="_blank" rel="noopener" href="https://encoder.till.im/download?utm_source=wp-plugin&utm_medium=setting"><?php _e( 'Premium only', 'email-address-encoder' ); ?></a>)
130
+ <p class="description">
131
+ <small><?php _e( 'State-of-the-art protection against smart robots, but requires JavaScript.', 'email-address-encoder' ); ?></small>
132
+ </p>
133
+ </label>
134
+
135
  </fieldset>
136
  </td>
137
  </tr>
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.1
7
  Requires PHP: 5.3
8
- Stable tag: 1.0.18
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -30,7 +30,7 @@ Other content (like phone numbers) can be protected using `[encode]` shortcode:
30
  * **Hardened protection** using JavaScript and CSS techniques
31
  * Built-in plugin support for **ACF**, **WooCommerce** and many others
32
 
33
- Check out the [Premium](https://encoder.till.im/scanner?utm_source=wp-plugin&amp;utm_medium=readme) version of Email Address Encoder.
34
 
35
  == Installation ==
36
 
@@ -57,7 +57,7 @@ You can use the "Page Scanner" found under _Settings -> Email Encoder_ to see wh
57
 
58
  = How can I filter other parts of my site? =
59
 
60
- [This guide](https://encoder.till.im/guide) will help you encode all email addresses that aren’t caught.
61
 
62
  == Screenshots ==
63
 
@@ -67,6 +67,12 @@ You can use the "Page Scanner" found under _Settings -> Email Encoder_ to see wh
67
 
68
  == Changelog ==
69
 
 
 
 
 
 
 
70
  = 1.0.18 =
71
 
72
  * Show warning when incompatible plugins are installed
5
  Requires at least: 2.0
6
  Tested up to: 5.1
7
  Requires PHP: 5.3
8
+ Stable tag: 1.0.19
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
30
  * **Hardened protection** using JavaScript and CSS techniques
31
  * Built-in plugin support for **ACF**, **WooCommerce** and many others
32
 
33
+ Check out the [Premium](https://encoder.till.im/download?utm_source=wp-plugin&amp;utm_medium=readme) version of Email Address Encoder.
34
 
35
  == Installation ==
36
 
57
 
58
  = How can I filter other parts of my site? =
59
 
60
+ [This guide](https://encoder.till.im/guide?utm_source=wp-plugin&amp;utm_medium=readme) will help you encode all email addresses that aren’t caught.
61
 
62
  == Screenshots ==
63
 
67
 
68
  == Changelog ==
69
 
70
+ = 1.0.19 =
71
+
72
+ * Defer loading of email detector script
73
+ * Use plugin version as cache buster
74
+ * Add "Polymorphous ROT47/CSS" to techniques
75
+
76
  = 1.0.18 =
77
 
78
  * Show warning when incompatible plugins are installed