WP Statistics - Version 8.6.1

Version Description

  • Added: Code to perform additional clean up of uncommon user agents.
  • Fixed: Spurious break statement in GeoIP exclusion code which caused a fatal error in certian cases.
Download this release

Release Info

Developer GregRoss
Plugin Icon 128x128 WP Statistics
Version 8.6.1
Comparing to
See all releases

Code changes from version 8.6 to 8.6.1

includes/classes/hits.class.php CHANGED
@@ -185,7 +185,6 @@
185
  else if( !in_array( $this->location, $included_countries ) ) {
186
  $this->exclusion_match = TRUE;
187
  $this->exclusion_reason = "geoip";
188
- break;
189
  }
190
 
191
  // Check to see if we are excluded by the host name.
185
  else if( !in_array( $this->location, $included_countries ) ) {
186
  $this->exclusion_match = TRUE;
187
  $this->exclusion_reason = "geoip";
 
188
  }
189
 
190
  // Check to see if we are excluded by the host name.
includes/classes/statistics.class.php CHANGED
@@ -288,6 +288,12 @@
288
  if( $agent['platform'] == null ) { $agent['platform'] = "Unknown"; }
289
  if( $agent['version'] == null ) { $agent['version'] = "Unknown"; }
290
 
 
 
 
 
 
 
291
  return $agent;
292
  }
293
 
288
  if( $agent['platform'] == null ) { $agent['platform'] = "Unknown"; }
289
  if( $agent['version'] == null ) { $agent['version'] = "Unknown"; }
290
 
291
+ // Uncommon browsers often have some extra cruft, like brackets, http:// and other strings that we can strip out.
292
+ $strip_strings = array('"', "'", '(', ')', ';', ':', '/', '[', ']', '{', '}', 'http' );
293
+ foreach( $agent as $key => $value ) {
294
+ $agent[$key] = str_replace( $strip_strings, '', $agent[$key] );
295
+ }
296
+
297
  return $agent;
298
  }
299
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://mostafa-soufi.ir/donate/
4
  Tags: statistics, stats, visit, visitors, chart, browser, blog, today, yesterday, week, month, year, total, post, page, sidebar, summary, feedburner, hits, pagerank, google, alexa, live visit
5
  Requires at least: 3.0
6
  Tested up to: 4.1
7
- Stable tag: 8.6
8
  License: GPL2
9
 
10
  Complete statistics for your WordPress site.
@@ -182,7 +182,7 @@ Do not use older versions of WP Statistics as they have know security issues and
182
 
183
  = I've decided to stay with WP Statistics 7.4 even though its a bad idea but now WordPress continuously reports there are updates available, how can I stop that? =
184
 
185
- Don't, upgrade immediatly to the latest version of WP Statistics.
186
 
187
  = Something has gone horribly wrong and my site no longer loads, how can I disable the plugin without access to the admin area? =
188
 
@@ -210,6 +210,10 @@ BACKUP YOUR DATABASE BEFORE INSTALLING! This release alters the table structure
210
  Support for old format substitution codes in the statistics reports has been removed, the upgrade now converts them to short codes but you should verify the report content after upgrading.
211
 
212
  == Changelog ==
 
 
 
 
213
  = 8.6 =
214
  * Added: Option to remove URI parameters from page tracking.
215
  * Added: GeoIP exclusion options.
4
  Tags: statistics, stats, visit, visitors, chart, browser, blog, today, yesterday, week, month, year, total, post, page, sidebar, summary, feedburner, hits, pagerank, google, alexa, live visit
5
  Requires at least: 3.0
6
  Tested up to: 4.1
7
+ Stable tag: 8.6.1
8
  License: GPL2
9
 
10
  Complete statistics for your WordPress site.
182
 
183
  = I've decided to stay with WP Statistics 7.4 even though its a bad idea but now WordPress continuously reports there are updates available, how can I stop that? =
184
 
185
+ Don't, upgrade immediately to the latest version of WP Statistics.
186
 
187
  = Something has gone horribly wrong and my site no longer loads, how can I disable the plugin without access to the admin area? =
188
 
210
  Support for old format substitution codes in the statistics reports has been removed, the upgrade now converts them to short codes but you should verify the report content after upgrading.
211
 
212
  == Changelog ==
213
+ = 8.6.1 =
214
+ * Added: Code to perform additional clean up of uncommon user agents.
215
+ * Fixed: Spurious break statement in GeoIP exclusion code which caused a fatal error in certian cases.
216
+
217
  = 8.6 =
218
  * Added: Option to remove URI parameters from page tracking.
219
  * Added: GeoIP exclusion options.
wp-statistics.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Statistics
4
  Plugin URI: http://wp-statistics.com/
5
  Description: Complete statistics for your WordPress site.
6
- Version: 8.6
7
  Author: Mostafa Soufi & Greg Ross
8
  Author URI: http://wp-statistics.com/
9
  Text Domain: wp_statistics
@@ -17,7 +17,7 @@ License: GPL2
17
  }
18
 
19
  // These defines are used later for various reasons.
20
- define('WP_STATISTICS_VERSION', '8.6');
21
  define('WP_STATISTICS_MANUAL', 'manual/WP Statistics Admin Manual.');
22
  define('WP_STATISTICS_REQUIRED_PHP_VERSION', '5.3.0');
23
  define('WP_STATISTICS_REQUIRED_GEOIP_PHP_VERSION', WP_STATISTICS_REQUIRED_PHP_VERSION);
3
  Plugin Name: WP Statistics
4
  Plugin URI: http://wp-statistics.com/
5
  Description: Complete statistics for your WordPress site.
6
+ Version: 8.6.1
7
  Author: Mostafa Soufi & Greg Ross
8
  Author URI: http://wp-statistics.com/
9
  Text Domain: wp_statistics
17
  }
18
 
19
  // These defines are used later for various reasons.
20
+ define('WP_STATISTICS_VERSION', '8.6.1');
21
  define('WP_STATISTICS_MANUAL', 'manual/WP Statistics Admin Manual.');
22
  define('WP_STATISTICS_REQUIRED_PHP_VERSION', '5.3.0');
23
  define('WP_STATISTICS_REQUIRED_GEOIP_PHP_VERSION', WP_STATISTICS_REQUIRED_PHP_VERSION);