Version Description
- Prevent potential compatibility issue with other plugins or themes
Download this release
Release Info
Developer | tillkruess |
Plugin | Email Address Encoder |
Version | 1.0.7 |
Comparing to | |
See all releases |
Code changes from version 1.0.6 to 1.0.7
- email-address-encoder.php +5 -5
- readme.txt +10 -2
email-address-encoder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Email Address Encoder
|
4 |
Plugin URI: http://wordpress.org/plugins/email-address-encoder/
|
5 |
Description: A lightweight plugin to protect email addresses from email-harvesting robots by encoding them into decimal and hexadecimal entities.
|
6 |
-
Version: 1.0.
|
7 |
Author: Till Krüss
|
8 |
Author URI: https://till.im/
|
9 |
Text Domain: email-address-encoder
|
@@ -32,14 +32,14 @@ foreach ( array( 'the_content', 'the_excerpt', 'widget_text', 'comment_text', 'c
|
|
32 |
/**
|
33 |
* Attempt to register the shortcode relatively late to avoid conflicts.
|
34 |
*/
|
35 |
-
add_action( 'init', '
|
36 |
|
37 |
/**
|
38 |
-
* Register the [encode] shortcode if it doesn't exist
|
39 |
*
|
40 |
* @return void
|
41 |
*/
|
42 |
-
function
|
43 |
if ( ! shortcode_exists( 'encode' ) ) {
|
44 |
add_shortcode( 'encode', 'eae_shortcode' );
|
45 |
}
|
@@ -137,7 +137,7 @@ function eae_encode_str( $string ) {
|
|
137 |
|
138 |
$r = ( $seed * ( 1 + $key ) ) % 100; // pseudo "random function"
|
139 |
|
140 |
-
if ( $r > 60 && $char
|
141 |
else if ( $r < 45 ) $chars[ $key ] = '&#x' . dechex( $ord ) . ';'; // hexadecimal
|
142 |
else $chars[ $key ] = '&#' . $ord . ';'; // decimal (ascii)
|
143 |
|
3 |
Plugin Name: Email Address Encoder
|
4 |
Plugin URI: http://wordpress.org/plugins/email-address-encoder/
|
5 |
Description: A lightweight plugin to protect email addresses from email-harvesting robots by encoding them into decimal and hexadecimal entities.
|
6 |
+
Version: 1.0.7
|
7 |
Author: Till Krüss
|
8 |
Author URI: https://till.im/
|
9 |
Text Domain: email-address-encoder
|
32 |
/**
|
33 |
* Attempt to register the shortcode relatively late to avoid conflicts.
|
34 |
*/
|
35 |
+
add_action( 'init', 'eae_register_shortcode', 1000 );
|
36 |
|
37 |
/**
|
38 |
+
* Register the [encode] shortcode, if it doesn't exist.
|
39 |
*
|
40 |
* @return void
|
41 |
*/
|
42 |
+
function eae_register_shortcode() {
|
43 |
if ( ! shortcode_exists( 'encode' ) ) {
|
44 |
add_shortcode( 'encode', 'eae_shortcode' );
|
45 |
}
|
137 |
|
138 |
$r = ( $seed * ( 1 + $key ) ) % 100; // pseudo "random function"
|
139 |
|
140 |
+
if ( $r > 60 && $char !== '@' && $char !== '.' ) ; // plain character (not encoded), except @-signs and dots
|
141 |
else if ( $r < 45 ) $chars[ $key ] = '&#x' . dechex( $ord ) . ';'; // hexadecimal
|
142 |
else $chars[ $key ] = '&#' . $ord . ';'; // decimal (ascii)
|
143 |
|
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: 4.9
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 1.0.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -14,7 +14,7 @@ A lightweight plugin to protect email addresses from email-harvesting robots by
|
|
14 |
|
15 |
== Description ==
|
16 |
|
17 |
-
A lightweight plugin to protect plain email addresses and mailto links from email-harvesting robots by encoding them into decimal and hexadecimal entities. Has effect on the posts, pages, comments, excerpts and text widgets. No UI, no
|
18 |
|
19 |
|
20 |
== Installation ==
|
@@ -65,6 +65,10 @@ Like this: `add_filter( 'eae_at_sign_check', '__return_false' );`
|
|
65 |
|
66 |
== Changelog ==
|
67 |
|
|
|
|
|
|
|
|
|
68 |
= 1.0.6 =
|
69 |
|
70 |
* Added `[encode]` shortcode
|
@@ -99,6 +103,10 @@ Like this: `add_filter( 'eae_at_sign_check', '__return_false' );`
|
|
99 |
|
100 |
== Upgrade Notice ==
|
101 |
|
|
|
|
|
|
|
|
|
102 |
= 1.0.6 =
|
103 |
|
104 |
This release adds PHP 7.2 compatibility and a new shortcode.
|
5 |
Requires at least: 2.0
|
6 |
Tested up to: 4.9
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 1.0.7
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
14 |
|
15 |
== Description ==
|
16 |
|
17 |
+
A lightweight plugin to protect plain email addresses and mailto links from email-harvesting robots by encoding them into decimal and hexadecimal entities. Has effect on the posts, pages, comments, excerpts and text widgets. No UI, no JavaScript — just simple spam protection.
|
18 |
|
19 |
|
20 |
== Installation ==
|
65 |
|
66 |
== Changelog ==
|
67 |
|
68 |
+
= 1.0.7 =
|
69 |
+
|
70 |
+
* Prevent potential compatibility issue with other plugins or themes
|
71 |
+
|
72 |
= 1.0.6 =
|
73 |
|
74 |
* Added `[encode]` shortcode
|
103 |
|
104 |
== Upgrade Notice ==
|
105 |
|
106 |
+
= 1.0.7 =
|
107 |
+
|
108 |
+
This release prevents potential compatibility issues.
|
109 |
+
|
110 |
= 1.0.6 =
|
111 |
|
112 |
This release adds PHP 7.2 compatibility and a new shortcode.
|