WP Statistics - Version 8.1.1

Version Description

  • If you have enabled browscap.ini, please go to Statistics->Settings->browscap and download the browscap.ini file manually.
Download this release

Release Info

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

Code changes from version 8.1 to 8.1.1

includes/settings/tabs/wps-browscap.php CHANGED
@@ -8,6 +8,11 @@ if( $wps_nonce_valid ) {
8
  if( array_key_exists( $option, $_POST ) ) { $value = $_POST[$option]; } else { $value = ''; }
9
  $WP_Statistics->store_option($new_option, $value);
10
  }
 
 
 
 
 
11
  }
12
 
13
  ?>
8
  if( array_key_exists( $option, $_POST ) ) { $value = $_POST[$option]; } else { $value = ''; }
9
  $WP_Statistics->store_option($new_option, $value);
10
  }
11
+
12
+ // If we're focing the download of the browscap.ini file, make sure to flush the last download time from the options.
13
+ if( array_key_exists( 'wps_update_browscap', $_POST ) ) {
14
+ $WP_Statistics->store_option('last_browscap_dl', 0);
15
+ }
16
  }
17
 
18
  ?>
includes/settings/tabs/wps-general.php CHANGED
@@ -315,7 +315,7 @@ if( $wps_nonce_valid ) {
315
  uasort( $schedules, 'wp_statistics_schedule_sort' );
316
 
317
  foreach( $schedules as $key => $value ) {
318
- echo ' <option value="' . $key . '" ' . selected($WP_Statistics->get_option('time_report'), 'hourly') . '>' . $value['display'] . '</option>';
319
  }
320
  ?>
321
  </select>
@@ -364,16 +364,6 @@ if( $wps_nonce_valid ) {
364
  <p class="description data">
365
  <?php _e('Any shortcode supported by your installation of WordPress, include all shortcodes for WP Statistics (see the admin manual for a list of codes available) are supported in the body of the message.', 'wp_statistics'); ?>
366
  </p>
367
- <p class="description data">
368
- <?php _e('Input data codes are now deprecated and will be removed in a future version of WP Statistics, please use the appropriate shortcodes, they are included here only for historical purposes:', 'wp_statistics'); ?>
369
- <?php _e('User Online', 'wp_statistics'); ?>: <code>%user_online%</code>
370
- <?php _e('Today Visitor', 'wp_statistics'); ?>: <code>%today_visitor%</code>
371
- <?php _e('Today Visit', 'wp_statistics'); ?>: <code>%today_visit%</code>
372
- <?php _e('Yesterday Visitor', 'wp_statistics'); ?>: <code>%yesterday_visitor%</code>
373
- <?php _e('Yesterday Visit', 'wp_statistics'); ?>: <code>%yesterday_visit%</code>
374
- <?php _e('Total Visitor', 'wp_statistics'); ?>: <code>%total_visitor%</code>
375
- <?php _e('Total Visit', 'wp_statistics'); ?>: <code>%total_visit%</code>
376
- </p>
377
  </td>
378
  </tr>
379
  </tbody>
315
  uasort( $schedules, 'wp_statistics_schedule_sort' );
316
 
317
  foreach( $schedules as $key => $value ) {
318
+ echo ' <option value="' . $key . '" ' . selected($WP_Statistics->get_option('time_report'), $key) . '>' . $value['display'] . '</option>';
319
  }
320
  ?>
321
  </select>
364
  <p class="description data">
365
  <?php _e('Any shortcode supported by your installation of WordPress, include all shortcodes for WP Statistics (see the admin manual for a list of codes available) are supported in the body of the message.', 'wp_statistics'); ?>
366
  </p>
 
 
 
 
 
 
 
 
 
 
367
  </td>
368
  </tr>
369
  </tbody>
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.0
7
- Stable tag: 8.1
8
  License: GPL2
9
 
10
  Complete statistics for your WordPress site.
@@ -201,12 +201,21 @@ If you are staying on WP Statistics 7.4 WordPress will, through the Dashboard an
201
  10. View latest search engine referrers Statistics page.
202
 
203
  == Upgrade Notice ==
 
 
 
204
  = 8.0 =
205
  * PHP 5.3 is now required for WP Statistics! DO NOT UPGRADE TO 8.0 IF YOU ARE RUNNING AN OLDER VERSION!
206
  * BACKUP YOUR DATABASE BEFORE INSTALLING! This release alters the table structure of the database.
207
  * 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.
208
 
209
  == Changelog ==
 
 
 
 
 
 
210
  = 8.1 =
211
  * Added: Detected browser information to the optimization page.
212
  * Updated: Re-organized new browscap code to avoid PHP 5.2 or below throwing a parse error.
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.0
7
+ Stable tag: 8.1.1
8
  License: GPL2
9
 
10
  Complete statistics for your WordPress site.
201
  10. View latest search engine referrers Statistics page.
202
 
203
  == Upgrade Notice ==
204
+ = 8.1.1 =
205
+ * If you have enabled browscap.ini, please go to Statistics->Settings->browscap and download the browscap.ini file manually.
206
+
207
  = 8.0 =
208
  * PHP 5.3 is now required for WP Statistics! DO NOT UPGRADE TO 8.0 IF YOU ARE RUNNING AN OLDER VERSION!
209
  * BACKUP YOUR DATABASE BEFORE INSTALLING! This release alters the table structure of the database.
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.1.1 =
214
+ * Fixed: Bug in browscap.ini update code that could mis-identify all hits as robots.
215
+ * Fixed: Bug in the scheduled reports code that failed to process the report content correctly.
216
+ * Fixed: Bug in schedule reports that failed to select the current schedule in the drop down.
217
+ * Removed: Depricated variables from the report content description.
218
+
219
  = 8.1 =
220
  * Added: Detected browser information to the optimization page.
221
  * Updated: Re-organized new browscap code to avoid PHP 5.2 or below throwing a parse error.
schedule.php CHANGED
@@ -141,7 +141,7 @@
141
  GLOBAL $WP_Statistics;
142
 
143
  // Retrieve the template from the options.
144
- $string = $WP_Statistics->get_option('content_report');
145
 
146
  // Process shortcodes in the template. Note that V8.0 upgrade script replaced the old %option% codes with the appropriate short codes.
147
  $final_text_report = do_shortcode( $final_text_report );
141
  GLOBAL $WP_Statistics;
142
 
143
  // Retrieve the template from the options.
144
+ $final_text_report = $WP_Statistics->get_option('content_report');
145
 
146
  // Process shortcodes in the template. Note that V8.0 upgrade script replaced the old %option% codes with the appropriate short codes.
147
  $final_text_report = do_shortcode( $final_text_report );
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.1
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.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);
3
  Plugin Name: WP Statistics
4
  Plugin URI: http://wp-statistics.com/
5
  Description: Complete statistics for your WordPress site.
6
+ Version: 8.1.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.1.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);
wps-updates.php CHANGED
@@ -133,7 +133,7 @@
133
  // If there is a new version, let's go get it.
134
  if( intval($RemoteVersion) > $LocalVersion ) {
135
 
136
- // Download the file from MaxMind, this places it in a temporary location.
137
  $TempFile = download_url( $download_url );
138
 
139
  // If we failed, through a message, otherwise proceed.
@@ -171,7 +171,7 @@
171
  case '[':
172
 
173
  // We have three sections we need to copy verbatium so don't do the standard processing for them.
174
- if( $title != 'GJK_Browscap_Version' && $title != 'DefaultProperties' && $title != "*" )
175
  {
176
  // If we found the current section is a crawler or we didn't find a crawler setting but the parent is a crawler...
177
  if( $crawler == 2 || ( $crawler == 0 && array_key_exists( $parent, $parents ) ) )
133
  // If there is a new version, let's go get it.
134
  if( intval($RemoteVersion) > $LocalVersion ) {
135
 
136
+ // Download the file from browscap.org, this places it in a temporary location.
137
  $TempFile = download_url( $download_url );
138
 
139
  // If we failed, through a message, otherwise proceed.
171
  case '[':
172
 
173
  // We have three sections we need to copy verbatium so don't do the standard processing for them.
174
+ if( $title != 'GJK_Browscap_Version' && $title != 'DefaultProperties' && $title != '*' && $title != '')
175
  {
176
  // If we found the current section is a crawler or we didn't find a crawler setting but the parent is a crawler...
177
  if( $crawler == 2 || ( $crawler == 0 && array_key_exists( $parent, $parents ) ) )