fix #5 Live filter configuration inverted

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

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' ) );
}