fix #5 Live filter configuration inverted

This commit is contained in:
Stefan Kalscheuer 2016-10-10 09:09:59 +02:00
parent f1e9ee0fbe
commit e80040fb7e
3 changed files with 10 additions and 6 deletions

View File

@ -2,7 +2,7 @@
* Contributors: Stefan Kalscheuer
* Requires at least: 3.9
* Tested up to: 4.6
* Stable tag: 1.2.0
* Stable tag: 1.2.1
* License: GPLv3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
@ -32,8 +32,8 @@ The plugin is capable of handling multisite installations.
* Goto _Settings_ -> _Statify Blacklist_ to configure the plugin
### Requirements ###
* PHP 5.2.4
* WordPress 3.9
* PHP 5.2.4 or above
* WordPress 3.9 or above
* Statify plugin installed and activated (tested up to 1.4.3)
## Frequently Asked Questions ##
@ -64,6 +64,10 @@ If you like to have this feature, please leave a feature request in GitHub or th
1. Statify Blacklist settings page
## Changelog ##
### 1.2.1 / 10.10.2016 ###
* Fix live filter configuration check
### 1.2.0 / 29.08.2016 ###
* Switched from `in_array()` to faster `isset()` for referer checking
* Optional cron execiton implemented

View File

@ -38,7 +38,7 @@ class StatifyBlacklist {
* Class constructor
*
* @since 1.0.0
* @changed 1.1.2
* @changed 1.2.1
*/
public function __construct() {
/* Skip on autosave or AJAX */
@ -53,7 +53,7 @@ class StatifyBlacklist {
self::$multisite = ( is_multisite() && array_key_exists( STATIFYBLACKLIST_BASE, (array) get_site_option( 'active_sitewide_plugins' ) ) );
/* Add Filter to statify hook if enabled */
if ( self::$_options['active_referer'] != 1 ) {
if ( self::$_options['active_referer'] != 0 ) {
add_filter( 'statify_skip_tracking', array( 'StatifyBlacklist', 'apply_blacklist_filter' ) );
}

View File

@ -8,7 +8,7 @@ Author: Stefan Kalscheuer
Author URI: https://stklcode.de
Plugin URI: https://wordpress.org/plugins/statify-blacklist
License: GPLv3 or later
Version: 1.2.0
Version: 1.2.1
*/
/* Quit */