Version Description
/ 01.05.2015 =
* Replace filter_has_var(INPUT_SERVER)
calls with isset($_SERVER[])
(why)
Download this release
Release Info
Developer | sergej.mueller |
Plugin | Statify |
Version | 1.4.2 |
Comparing to | |
See all releases |
Code changes from version 1.4.1 to 1.4.2
- inc/statify_frontend.class.php +5 -5
- readme.txt +3 -0
- statify.php +1 -1
inc/statify_frontend.class.php
CHANGED
@@ -19,7 +19,7 @@ class Statify_Frontend extends Statify
|
|
19 |
* Track the page view
|
20 |
*
|
21 |
* @since 0.1.0
|
22 |
-
* @change 1.4.
|
23 |
*/
|
24 |
|
25 |
public static function track_visit()
|
@@ -38,8 +38,8 @@ class Statify_Frontend extends Statify
|
|
38 |
$target = urldecode( get_query_var('statify_target') );
|
39 |
$referrer = urldecode( get_query_var('statify_referrer') );
|
40 |
} else if ( ! $use_snippet) {
|
41 |
-
$target = (
|
42 |
-
$referrer = (
|
43 |
} else {
|
44 |
return;
|
45 |
}
|
@@ -96,7 +96,7 @@ class Statify_Frontend extends Statify
|
|
96 |
* Rules to skip the tracking
|
97 |
*
|
98 |
* @since 1.2.6
|
99 |
-
* @change 1.4.
|
100 |
*
|
101 |
* @hook boolean statify_skip_tracking (https://gist.github.com/sergejmueller/7612368)
|
102 |
*
|
@@ -110,7 +110,7 @@ class Statify_Frontend extends Statify
|
|
110 |
}
|
111 |
|
112 |
/* Skip tracking via User Agent */
|
113 |
-
if ( !
|
114 |
return true;
|
115 |
}
|
116 |
|
19 |
* Track the page view
|
20 |
*
|
21 |
* @since 0.1.0
|
22 |
+
* @change 1.4.2
|
23 |
*/
|
24 |
|
25 |
public static function track_visit()
|
38 |
$target = urldecode( get_query_var('statify_target') );
|
39 |
$referrer = urldecode( get_query_var('statify_referrer') );
|
40 |
} else if ( ! $use_snippet) {
|
41 |
+
$target = ( isset($_SERVER['REQUEST_URI']) ? wp_unslash($_SERVER['REQUEST_URI']) : '/' );
|
42 |
+
$referrer = ( isset($_SERVER['HTTP_REFERER']) ? wp_unslash($_SERVER['HTTP_REFERER']) : '' );
|
43 |
} else {
|
44 |
return;
|
45 |
}
|
96 |
* Rules to skip the tracking
|
97 |
*
|
98 |
* @since 1.2.6
|
99 |
+
* @change 1.4.2
|
100 |
*
|
101 |
* @hook boolean statify_skip_tracking (https://gist.github.com/sergejmueller/7612368)
|
102 |
*
|
110 |
}
|
111 |
|
112 |
/* Skip tracking via User Agent */
|
113 |
+
if ( ! isset($_SERVER['HTTP_USER_AGENT']) OR ! preg_match('/(?:Windows|Macintosh|Linux|iPhone|iPad)/', $_SERVER['HTTP_USER_AGENT']) ) {
|
114 |
return true;
|
115 |
}
|
116 |
|
readme.txt
CHANGED
@@ -64,6 +64,9 @@ For compatibility with caching plugins like [Cachify](http://cachify.de) *Statif
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
|
|
|
|
|
|
67 |
= 1.4.1 / 29.04.2015 =
|
68 |
* Renew the tracking mechanism
|
69 |
|
64 |
|
65 |
== Changelog ==
|
66 |
|
67 |
+
= 1.4.2 / 01.05.2015 =
|
68 |
+
* Replace `filter_has_var(INPUT_SERVER)` calls with `isset($_SERVER[])` ([why](https://github.com/wp-stream/stream/issues/254))
|
69 |
+
|
70 |
= 1.4.1 / 29.04.2015 =
|
71 |
* Renew the tracking mechanism
|
72 |
|
statify.php
CHANGED
@@ -8,7 +8,7 @@ Author: Sergej Müller
|
|
8 |
Author URI: http://wpcoder.de
|
9 |
Plugin URI: http://statify.de
|
10 |
License: GPLv2 or later
|
11 |
-
Version: 1.4.
|
12 |
*/
|
13 |
|
14 |
/*
|
8 |
Author URI: http://wpcoder.de
|
9 |
Plugin URI: http://statify.de
|
10 |
License: GPLv2 or later
|
11 |
+
Version: 1.4.2
|
12 |
*/
|
13 |
|
14 |
/*
|