Skip to content

Commit

Permalink
fix #5 Live filter configuration inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode committed Oct 10, 2016
1 parent f1e9ee0 commit e80040f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 ##
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions inc/statifyblacklist.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static function instance() {
* Class constructor
*
* @since 1.0.0
* @changed 1.1.2
* @changed 1.2.1
*/
public function __construct() {
/* Skip on autosave or AJAX */
Expand All @@ -53,7 +53,7 @@ public function __construct() {
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' ) );
}

Expand Down
2 changes: 1 addition & 1 deletion statify-blacklist.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
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 */
Expand Down

0 comments on commit e80040f

Please sign in to comment.