Version Description
- Widget Logic options bug
Download this release
Release Info
Developer | freelancephp |
Plugin | Email Encoder Bundle – Protect Email Address |
Version | 0.42 |
Comparing to | |
See all releases |
Code changes from version 0.41 to 0.42
- email-encoder-bundle.php +15 -15
- readme.txt +5 -2
email-encoder-bundle.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Email Encoder Bundle
|
|
4 |
Plugin URI: http://www.freelancephp.net/email-encoder-php-class-wp-plugin/
|
5 |
Description: Protect email addresses on your site from spambots and being used for spamming by using one of the encoding methods.
|
6 |
Author: Victor Villaverde Laan
|
7 |
-
Version: 0.
|
8 |
Author URI: http://www.freelancephp.net
|
9 |
License: Dual licensed under the MIT and GPL licenses
|
10 |
*/
|
@@ -20,7 +20,7 @@ class WP_Email_Encoder_Bundle {
|
|
20 |
* Current version
|
21 |
* @var string
|
22 |
*/
|
23 |
-
var $version = '0.
|
24 |
|
25 |
/**
|
26 |
* Used as prefix for options entry and could be used as text domain (for translations)
|
@@ -38,17 +38,17 @@ class WP_Email_Encoder_Bundle {
|
|
38 |
* @var array
|
39 |
*/
|
40 |
var $options = array(
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
|
53 |
/**
|
54 |
* Regexp
|
@@ -338,7 +338,7 @@ jQuery(function( $ ){
|
|
338 |
<br/><label><input type="checkbox" id="<?php echo $this->options_name ?>[filter_comments]" name="<?php echo $this->options_name ?>[filter_comments]" value="1" <?php checked('1', (int) $options['filter_comments']); ?> />
|
339 |
<span><?php _e( 'All comments', $this->domain ) ?></span></label>
|
340 |
<br/><label><input type="checkbox" id="<?php echo $this->options_name ?>[filter_widgets]" name="<?php echo $this->options_name ?>[filter_widgets]" value="1" <?php checked('1', (int) $options['filter_widgets']); ?> />
|
341 |
-
<span><?php if ( $this->options[ 'widget_logic_filter' ] ) { _e( 'All widgets (uses the widget_content filter of the Widget Logic plugin)', $this->domain ); } else { _e( 'All text widgets', $this->domain ); } ?></span></label>
|
342 |
</td>
|
343 |
</tr>
|
344 |
<tr>
|
@@ -570,7 +570,7 @@ jQuery(function( $ ){
|
|
570 |
|
571 |
// set widget_content filter of Widget Logic plugin
|
572 |
$widget_logic_opts = get_option( 'widget_logic' );
|
573 |
-
if ( key_exists( 'widget_logic-options-filter', $widget_logic_opts ) ) {
|
574 |
$this->options[ 'widget_logic_filter' ] = ( $widget_logic_opts[ 'widget_logic-options-filter' ] == 'checked' ) ? 1 : 0;
|
575 |
}
|
576 |
}
|
4 |
Plugin URI: http://www.freelancephp.net/email-encoder-php-class-wp-plugin/
|
5 |
Description: Protect email addresses on your site from spambots and being used for spamming by using one of the encoding methods.
|
6 |
Author: Victor Villaverde Laan
|
7 |
+
Version: 0.42
|
8 |
Author URI: http://www.freelancephp.net
|
9 |
License: Dual licensed under the MIT and GPL licenses
|
10 |
*/
|
20 |
* Current version
|
21 |
* @var string
|
22 |
*/
|
23 |
+
var $version = '0.42';
|
24 |
|
25 |
/**
|
26 |
* Used as prefix for options entry and could be used as text domain (for translations)
|
38 |
* @var array
|
39 |
*/
|
40 |
var $options = array(
|
41 |
+
'method' => 'lim_email_ascii',
|
42 |
+
'encode_mailtos' => 1,
|
43 |
+
'encode_emails' => 1,
|
44 |
+
'class_name' => 'mailto-link',
|
45 |
+
'filter_posts' => 1,
|
46 |
+
'filter_widgets' => 1,
|
47 |
+
'filter_comments' => 1,
|
48 |
+
'filter_rss' => 1,
|
49 |
+
'widget_logic_filter' => 0,
|
50 |
+
'powered_by' => 1,
|
51 |
+
);
|
52 |
|
53 |
/**
|
54 |
* Regexp
|
338 |
<br/><label><input type="checkbox" id="<?php echo $this->options_name ?>[filter_comments]" name="<?php echo $this->options_name ?>[filter_comments]" value="1" <?php checked('1', (int) $options['filter_comments']); ?> />
|
339 |
<span><?php _e( 'All comments', $this->domain ) ?></span></label>
|
340 |
<br/><label><input type="checkbox" id="<?php echo $this->options_name ?>[filter_widgets]" name="<?php echo $this->options_name ?>[filter_widgets]" value="1" <?php checked('1', (int) $options['filter_widgets']); ?> />
|
341 |
+
<span><?php if ( $this->options[ 'widget_logic_filter' ] ) { _e( 'All widgets (uses the <code>widget_content</code> filter of the Widget Logic plugin)', $this->domain ); } else { _e( 'All text widgets', $this->domain ); } ?></span></label>
|
342 |
</td>
|
343 |
</tr>
|
344 |
<tr>
|
570 |
|
571 |
// set widget_content filter of Widget Logic plugin
|
572 |
$widget_logic_opts = get_option( 'widget_logic' );
|
573 |
+
if ( is_array( $widget_logic_opts ) AND key_exists( 'widget_logic-options-filter', $widget_logic_opts ) ) {
|
574 |
$this->options[ 'widget_logic_filter' ] = ( $widget_logic_opts[ 'widget_logic-options-filter' ] == 'checked' ) ? 1 : 0;
|
575 |
}
|
576 |
}
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: freelancephp
|
3 |
Tags: email, hide, mailto, spam, protection, spambots, encoder, encrypt, encode, obfuscate, antispam, spamming
|
4 |
Requires at least: 2.7.0
|
5 |
-
Tested up to: 3.1
|
6 |
-
Stable tag: 0.
|
7 |
|
8 |
Protect email addresses on your site from spambots and being used for spamming. This plugin encodes all email adresses so spambots cannot read them.
|
9 |
|
@@ -75,6 +75,9 @@ Optionally you can add a name and description to be showed in the admin panel, l
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
78 |
= 0.41 =
|
79 |
* Solved bug by improving regular expression for mailto links
|
80 |
* Changed script attribute `language` to `type`
|
2 |
Contributors: freelancephp
|
3 |
Tags: email, hide, mailto, spam, protection, spambots, encoder, encrypt, encode, obfuscate, antispam, spamming
|
4 |
Requires at least: 2.7.0
|
5 |
+
Tested up to: 3.3.1
|
6 |
+
Stable tag: 0.42
|
7 |
|
8 |
Protect email addresses on your site from spambots and being used for spamming. This plugin encodes all email adresses so spambots cannot read them.
|
9 |
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
+
= 0.42 =
|
79 |
+
* Widget Logic options bug
|
80 |
+
|
81 |
= 0.41 =
|
82 |
* Solved bug by improving regular expression for mailto links
|
83 |
* Changed script attribute `language` to `type`
|