fix #5 Live filter configuration inverted
This commit is contained in:
parent
f1e9ee0fbe
commit
e80040fb7e
10
README.md
10
README.md
@ -2,7 +2,7 @@
|
|||||||
* Contributors: Stefan Kalscheuer
|
* Contributors: Stefan Kalscheuer
|
||||||
* Requires at least: 3.9
|
* Requires at least: 3.9
|
||||||
* Tested up to: 4.6
|
* Tested up to: 4.6
|
||||||
* Stable tag: 1.2.0
|
* Stable tag: 1.2.1
|
||||||
* License: GPLv3 or later
|
* License: GPLv3 or later
|
||||||
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
* 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
|
* Goto _Settings_ -> _Statify Blacklist_ to configure the plugin
|
||||||
|
|
||||||
### Requirements ###
|
### Requirements ###
|
||||||
* PHP 5.2.4
|
* PHP 5.2.4 or above
|
||||||
* WordPress 3.9
|
* WordPress 3.9 or above
|
||||||
* Statify plugin installed and activated (tested up to 1.4.3)
|
* Statify plugin installed and activated (tested up to 1.4.3)
|
||||||
|
|
||||||
## Frequently Asked Questions ##
|
## 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
|
1. Statify Blacklist settings page
|
||||||
|
|
||||||
## Changelog ##
|
## Changelog ##
|
||||||
|
|
||||||
|
### 1.2.1 / 10.10.2016 ###
|
||||||
|
* Fix live filter configuration check
|
||||||
|
|
||||||
### 1.2.0 / 29.08.2016 ###
|
### 1.2.0 / 29.08.2016 ###
|
||||||
* Switched from `in_array()` to faster `isset()` for referer checking
|
* Switched from `in_array()` to faster `isset()` for referer checking
|
||||||
* Optional cron execiton implemented
|
* Optional cron execiton implemented
|
||||||
|
@ -38,7 +38,7 @@ class StatifyBlacklist {
|
|||||||
* Class constructor
|
* Class constructor
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @changed 1.1.2
|
* @changed 1.2.1
|
||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
/* Skip on autosave or AJAX */
|
/* 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' ) ) );
|
self::$multisite = ( is_multisite() && array_key_exists( STATIFYBLACKLIST_BASE, (array) get_site_option( 'active_sitewide_plugins' ) ) );
|
||||||
|
|
||||||
/* Add Filter to statify hook if enabled */
|
/* 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' ) );
|
add_filter( 'statify_skip_tracking', array( 'StatifyBlacklist', 'apply_blacklist_filter' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ Author: Stefan Kalscheuer
|
|||||||
Author URI: https://stklcode.de
|
Author URI: https://stklcode.de
|
||||||
Plugin URI: https://wordpress.org/plugins/statify-blacklist
|
Plugin URI: https://wordpress.org/plugins/statify-blacklist
|
||||||
License: GPLv3 or later
|
License: GPLv3 or later
|
||||||
Version: 1.2.0
|
Version: 1.2.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Quit */
|
/* Quit */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user