Version Description
Download this release
Release Info
| Developer | patrickrobrecht |
| Plugin | |
| Version | 1.6.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.6.1 to 1.6.2
- inc/class-statify-frontend.php +1 -1
- js/snippet.js +11 -8
- readme.txt +5 -1
- statify.php +1 -1
- views/js-snippet.php +6 -5
inc/class-statify-frontend.php
CHANGED
|
@@ -46,7 +46,7 @@ class Statify_Frontend extends Statify {
|
|
| 46 |
|
| 47 |
$referrer = filter_input( INPUT_SERVER, 'HTTP_REFERER', FILTER_SANITIZE_URL );
|
| 48 |
if ( is_null( $referrer ) || false === $referrer ) {
|
| 49 |
-
$
|
| 50 |
}
|
| 51 |
} else {
|
| 52 |
return false;
|
| 46 |
|
| 47 |
$referrer = filter_input( INPUT_SERVER, 'HTTP_REFERER', FILTER_SANITIZE_URL );
|
| 48 |
if ( is_null( $referrer ) || false === $referrer ) {
|
| 49 |
+
$referrer = '';
|
| 50 |
}
|
| 51 |
} else {
|
| 52 |
return false;
|
js/snippet.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
-
|
| 2 |
-
statifyReq
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
)
|
| 8 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
try {
|
| 2 |
+
const statifyReq = new XMLHttpRequest();
|
| 3 |
+
statifyReq.open(
|
| 4 |
+
'GET',
|
| 5 |
+
document.getElementById('statify-js-snippet').getAttribute('data-home-url')
|
| 6 |
+
+ '?statify_referrer=' + encodeURIComponent(document.referrer)
|
| 7 |
+
+ '&statify_target=' + encodeURIComponent(location.pathname + location.search)
|
| 8 |
+
);
|
| 9 |
+
statifyReq.send(null);
|
| 10 |
+
} catch (e) {
|
| 11 |
+
}
|
readme.txt
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
* Requires at least: 4.7
|
| 6 |
* Tested up to: 4.9
|
| 7 |
* Requires PHP: 5.6
|
| 8 |
-
* Stable tag: 1.6.
|
| 9 |
* License: GPLv3 or later
|
| 10 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 11 |
|
|
@@ -115,6 +115,10 @@ has to be added to the theme's `functions.php`. The condition has modified such
|
|
| 115 |
## Changelog ##
|
| 116 |
You can find the full changelog in [our GitHub repository](https://github.com/pluginkollektiv/statify/blob/master/CHANGELOG.md).
|
| 117 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
### 1.6.1
|
| 119 |
* Scaled datapoint size to number of records in dashboard widget to improve legibility
|
| 120 |
* Fix display of larger numbers in the y-axis
|
| 5 |
* Requires at least: 4.7
|
| 6 |
* Tested up to: 4.9
|
| 7 |
* Requires PHP: 5.6
|
| 8 |
+
* Stable tag: 1.6.2
|
| 9 |
* License: GPLv3 or later
|
| 10 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 11 |
|
| 115 |
## Changelog ##
|
| 116 |
You can find the full changelog in [our GitHub repository](https://github.com/pluginkollektiv/statify/blob/master/CHANGELOG.md).
|
| 117 |
|
| 118 |
+
### 1.6.2
|
| 119 |
+
* Fix compatibility issues with JavaScript optimization plugins
|
| 120 |
+
* Fix tracking issue if JavaScript tracking is disabled
|
| 121 |
+
|
| 122 |
### 1.6.1
|
| 123 |
* Scaled datapoint size to number of records in dashboard widget to improve legibility
|
| 124 |
* Fix display of larger numbers in the y-axis
|
statify.php
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
* Author URI: https://pluginkollektiv.org
|
| 8 |
* Plugin URI: https://wordpress.org/plugins/statify/
|
| 9 |
* License: GPLv3 or later
|
| 10 |
-
* Version: 1.6.
|
| 11 |
*
|
| 12 |
* @package WordPress
|
| 13 |
*/
|
| 7 |
* Author URI: https://pluginkollektiv.org
|
| 8 |
* Plugin URI: https://wordpress.org/plugins/statify/
|
| 9 |
* License: GPLv3 or later
|
| 10 |
+
* Version: 1.6.2
|
| 11 |
*
|
| 12 |
* @package WordPress
|
| 13 |
*/
|
views/js-snippet.php
CHANGED
|
@@ -10,11 +10,12 @@
|
|
| 10 |
class_exists( 'Statify' ) || exit; ?>
|
| 11 |
|
| 12 |
<!-- Stats by http://statify.de -->
|
| 13 |
-
<
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
|
|
|
| 18 |
</script>
|
| 19 |
|
| 20 |
<?php /* Markup space */ ?>
|
| 10 |
class_exists( 'Statify' ) || exit; ?>
|
| 11 |
|
| 12 |
<!-- Stats by http://statify.de -->
|
| 13 |
+
<div id="statify-js-snippet"
|
| 14 |
+
style="display:none"
|
| 15 |
+
data-home-url="<?php echo esc_url( home_url( '/', 'relative' ) ); ?>">
|
| 16 |
+
</div>
|
| 17 |
+
<script type="text/javascript"
|
| 18 |
+
src="<?php echo esc_attr( plugins_url( 'js/snippet.js', STATIFY_FILE ) ); ?>">
|
| 19 |
</script>
|
| 20 |
|
| 21 |
<?php /* Markup space */ ?>
|
