Statify - Version 1.5.2

Version Description

Download this release

Release Info

Developer patrickrobrecht
Plugin Icon 128x128 Statify
Version 1.5.2
Comparing to
See all releases

Code changes from version 1.5.1 to 1.5.2

CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
  # Changelog
2
  All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
3
 
 
 
 
4
  ## 1.5.1 / 2017-05-04
5
  * Bugfix: Consider filter for skipping tracking correctly if JavaScript tracking is disabled.
6
  * Bugfix: PHP Notice for empty blacklist value.
1
  # Changelog
2
  All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
3
 
4
+ ## 1.5.2 / 2017-08-15
5
+ * Switched to minimal WordPress version 4.7, removed fallback code not needed anymore
6
+
7
  ## 1.5.1 / 2017-05-04
8
  * Bugfix: Consider filter for skipping tracking correctly if JavaScript tracking is disabled.
9
  * Bugfix: PHP Notice for empty blacklist value.
inc/statify_install.class.php CHANGED
@@ -20,14 +20,8 @@ class Statify_Install {
20
  public static function init( $network_wide = false ) {
21
 
22
  if ( $network_wide && is_multisite() ) {
23
- // @ToDo: leave only get_sites, after decision which versions of WP will we supporting.
24
- if ( function_exists( 'get_sites' ) ) {
25
- $sites = get_sites();
26
- } elseif ( function_exists( 'wp_get_sites' ) ) {
27
- $sites = wp_get_sites();
28
- } else {
29
- return;
30
- }
31
  // Create tables for each site in a network.
32
  foreach ( $sites as $site ) {
33
  // Convert object to array.
20
  public static function init( $network_wide = false ) {
21
 
22
  if ( $network_wide && is_multisite() ) {
23
+ $sites = get_sites();
24
+
 
 
 
 
 
 
25
  // Create tables for each site in a network.
26
  foreach ( $sites as $site ) {
27
  // Convert object to array.
inc/statify_uninstall.class.php CHANGED
@@ -16,18 +16,9 @@ class Statify_Uninstall {
16
  * @version 0.1.0
17
  */
18
  public static function init() {
19
-
20
  if ( is_multisite() ) {
21
  $old = get_current_blog_id();
22
- // @ToDo: leave only get_sites, after decision which versions of WP will we supporting.
23
- // @ToDo Redundant with Statify_Install class. We should reduce the maintenance.
24
- if ( function_exists( 'get_sites' ) ) {
25
- $sites = get_sites();
26
- } elseif ( function_exists( 'wp_get_sites' ) ) {
27
- $sites = wp_get_sites();
28
- } else {
29
- return;
30
- }
31
 
32
  foreach ( $sites as $site ) {
33
  // Convert object to array.
16
  * @version 0.1.0
17
  */
18
  public static function init() {
 
19
  if ( is_multisite() ) {
20
  $old = get_current_blog_id();
21
+ $sites = get_sites();
 
 
 
 
 
 
 
 
22
 
23
  foreach ( $sites as $site ) {
24
  // Convert object to array.
readme.txt CHANGED
@@ -2,9 +2,10 @@
2
  * Contributors: pluginkollektiv
3
  * Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW
4
  * Tags: analytics, dashboard, pageviews, privacy, statistics, stats, visits, web stats, widget
5
- * Requires at least: 3.9
6
- * Tested up to: 4.7
7
- * Stable tag: 1.5.1
 
8
  * License: GPLv3 or later
9
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -116,6 +117,9 @@ has to be added to the theme's `functions.php`. The condition has modified such
116
  ## Changelog ##
117
  You can find the full changelog in [our GitHub repository](https://github.com/pluginkollektiv/statify/blob/master/CHANGELOG.md).
118
 
 
 
 
119
  ### 1.5.1 (2017-05-04) ###
120
  * Bugfix: Consider filter for skipping tracking correctly if JavaScript tracking is disabled.
121
  * Bugfix: PHP Notice for empty blacklist value.
@@ -130,38 +134,13 @@ You can find the full changelog in [our GitHub repository](https://github.com/pl
130
  * Bugfix for multi-site installations: Don't track network admin url.
131
  * Changed hook name `statify_skip_tracking` to `statify__skip_tracking`.
132
 
133
- ### 1.4.4 ###
134
- * Renamed the handle of the Raphael JS library. This fixed a bug, where raphael couldn't work properly when also loaded with Antispam Bee.
135
-
136
- ### 1.4.3 ###
137
- * Corrected tracking and display in Multisite
138
- * Minor CSS fixes in the dashboard widget
139
- * Removed deprecated links and updated URLs for donate and wiki links
140
- * Administrative updates to plugin header and README
141
- * Updated [plugin authors](https://gist.github.com/glueckpress/f058c0ab973d45a72720)
142
-
143
- ### 1.4.2 ###
144
- * Replace `filter_has_var(INPUT_SERVER)` calls with `isset($_SERVER[])` ([why](https://github.com/wp-stream/stream/issues/254))
145
-
146
- ### 1.4.1 ###
147
- * Renew the tracking mechanism
148
-
149
- ### 1.4.0 ###
150
- * WordPress 4.2 support
151
- * Plugin-wide code refactoring
152
- * Translations for English and Russian
153
- * [GitHub Repository](https://github.com/pluginkollektiv/statify)
154
-
155
- ### 1.3.0 / 28.04.2014 ###
156
- * Sourcecode optimization for plugin-finalization
157
-
158
  For the complete changelog, check out our [GitHub repository](https://github.com/pluginkollektiv/statify).
159
 
160
 
161
  ## Upgrade Notice ##
162
 
163
- ### 1.5.1 ###
164
- Bugfix release. It is recommended for all users.
165
 
166
 
167
  ## Screenshots ##
2
  * Contributors: pluginkollektiv
3
  * Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW
4
  * Tags: analytics, dashboard, pageviews, privacy, statistics, stats, visits, web stats, widget
5
+ * Requires at least: 4.7
6
+ * Tested up to: 4.9
7
+ * Requires PHP: 5.6
8
+ * Stable tag: 1.5.2
9
  * License: GPLv3 or later
10
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
117
  ## Changelog ##
118
  You can find the full changelog in [our GitHub repository](https://github.com/pluginkollektiv/statify/blob/master/CHANGELOG.md).
119
 
120
+ ### 1.5.2 (2017-08-15) ###
121
+ * Switched to minimal WordPress version 4.7, removed fallback code not needed anymore
122
+
123
  ### 1.5.1 (2017-05-04) ###
124
  * Bugfix: Consider filter for skipping tracking correctly if JavaScript tracking is disabled.
125
  * Bugfix: PHP Notice for empty blacklist value.
134
  * Bugfix for multi-site installations: Don't track network admin url.
135
  * Changed hook name `statify_skip_tracking` to `statify__skip_tracking`.
136
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  For the complete changelog, check out our [GitHub repository](https://github.com/pluginkollektiv/statify).
138
 
139
 
140
  ## Upgrade Notice ##
141
 
142
+ ### 1.5.2 ###
143
+ Compatibility release. It is recommended for all users. Note that versions prior to WordPress 4.7 are not supported anymore.
144
 
145
 
146
  ## Screenshots ##
statify.php CHANGED
@@ -7,7 +7,7 @@
7
  * Author URI: http://pluginkollektiv.org
8
  * Plugin URI: https://wordpress.org/plugins/statify/
9
  * License: GPLv3 or later
10
- * Version: 1.5.1
11
  *
12
  * Copyright (C) 2011-2017 Sergej Müller, pluginkollektiv
13
  *
7
  * Author URI: http://pluginkollektiv.org
8
  * Plugin URI: https://wordpress.org/plugins/statify/
9
  * License: GPLv3 or later
10
+ * Version: 1.5.2
11
  *
12
  * Copyright (C) 2011-2017 Sergej Müller, pluginkollektiv
13
  *