WP Statistics - Version 10.0.3

Version Description

  • Release Date: January 19, 2016
  • Updated: Google map API now always uses https.
  • Fixed: Google map error that broken the overview page display of charts and the map.
Download this release

Release Info

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

Code changes from version 10.0.2 to 10.0.3

dashboard.php CHANGED
@@ -93,8 +93,10 @@
93
  wp_enqueue_style('jqvmap-css', plugin_dir_url(__FILE__) . 'assets/jqvmap/jqvmap.css', true, '1.1');
94
  wp_enqueue_script('jquery-vmap', plugin_dir_url(__FILE__) . 'assets/jqvmap/jquery.vmap.min.js', true, '1.1');
95
  wp_enqueue_script('jquery-vmap-world', plugin_dir_url(__FILE__) . 'assets/jqvmap/maps/jquery.vmap.world.js', true, '1.1');
96
- }
97
-
 
 
98
  $screen = get_current_screen();
99
 
100
  // Load our custom widgets handling javascript.
93
  wp_enqueue_style('jqvmap-css', plugin_dir_url(__FILE__) . 'assets/jqvmap/jqvmap.css', true, '1.1');
94
  wp_enqueue_script('jquery-vmap', plugin_dir_url(__FILE__) . 'assets/jqvmap/jquery.vmap.min.js', true, '1.1');
95
  wp_enqueue_script('jquery-vmap-world', plugin_dir_url(__FILE__) . 'assets/jqvmap/maps/jquery.vmap.world.js', true, '1.1');
96
+ } else {
97
+ wp_enqueue_script('google-maps', 'https://maps.google.com/maps/api/js');
98
+ }
99
+
100
  $screen = get_current_screen();
101
 
102
  // Load our custom widgets handling javascript.
includes/log/widgets/google.map.php CHANGED
@@ -2,16 +2,8 @@
2
  function wp_statistics_generate_map_postbox_content($ISOCountryCode) {
3
 
4
  global $wpdb, $WP_Statistics;
5
-
6
- // Some clients can't handle mixed http/https pages so check to see if the page we're on has http
7
- // enabled, if so, use https instead just in case for the Google script.
8
- $protocol = "http";
9
-
10
- if( array_key_exists( 'HTTPS', $_SERVER ) ) {
11
- if( $_SERVER['HTTPS'] == 'on' ) { $protocol .= 's'; }
12
- }
13
  ?>
14
- <script src="<?php echo $protocol; ?>://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
15
  <div id="map_canvas">Google Map</div>
16
 
17
  <?php $result = $wpdb->get_row("SELECT * FROM `{$wpdb->prefix}statistics_visitor` WHERE last_counter = '{$WP_Statistics->Current_Date('Y-m-d')}'"); ?>
2
  function wp_statistics_generate_map_postbox_content($ISOCountryCode) {
3
 
4
  global $wpdb, $WP_Statistics;
5
+
 
 
 
 
 
 
 
6
  ?>
 
7
  <div id="map_canvas">Google Map</div>
8
 
9
  <?php $result = $wpdb->get_row("SELECT * FROM `{$wpdb->prefix}statistics_visitor` WHERE last_counter = '{$WP_Statistics->Current_Date('Y-m-d')}'"); ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wp-statistics.com/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.4
7
- Stable tag: 10.0.2
8
  License: GPL3
9
 
10
  Complete statistics for your WordPress site.
@@ -238,6 +238,11 @@ If you still have issues open a new thread on the support forum and we'll try an
238
  The overview page has been completely rewritten! If you had set custom values for what widgets to display and in what order on your overview page you will have to re-select them using the "Screen Options" tab on the overview page and by dragging and dropping the widgets in to place.
239
 
240
  == Changelog ==
 
 
 
 
 
241
  = 10.0.2 =
242
  * Release Date: January 19, 2016
243
  * Added: Additional error checking on widget load so they will retry if there is a failure.
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.4
7
+ Stable tag: 10.0.3
8
  License: GPL3
9
 
10
  Complete statistics for your WordPress site.
238
  The overview page has been completely rewritten! If you had set custom values for what widgets to display and in what order on your overview page you will have to re-select them using the "Screen Options" tab on the overview page and by dragging and dropping the widgets in to place.
239
 
240
  == Changelog ==
241
+ = 10.0.3 =
242
+ * Release Date: January 19, 2016
243
+ * Updated: Google map API now always uses https.
244
+ * Fixed: Google map error that broken the overview page display of charts and the map.
245
+
246
  = 10.0.2 =
247
  * Release Date: January 19, 2016
248
  * Added: Additional error checking on widget load so they will retry if there is a failure.
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: 10.0.2
7
  Author: Mostafa Soufi & Greg Ross
8
  Author URI: http://wp-statistics.com/
9
  Text Domain: wp_statistics
@@ -12,7 +12,7 @@ License: GPL2
12
  */
13
 
14
  // These defines are used later for various reasons.
15
- define('WP_STATISTICS_VERSION', '10.0.2');
16
  define('WP_STATISTICS_MANUAL', 'manual/WP Statistics Admin Manual.');
17
  define('WP_STATISTICS_REQUIRED_PHP_VERSION', '5.3.0');
18
  define('WP_STATISTICS_REQUIRED_GEOIP_PHP_VERSION', WP_STATISTICS_REQUIRED_PHP_VERSION);
@@ -859,6 +859,8 @@ License: GPL2
859
  wp_enqueue_style('jqvmap-css', plugin_dir_url(__FILE__) . 'assets/jqvmap/jqvmap.css', true, '1.1');
860
  wp_enqueue_script('jquery-vmap', plugin_dir_url(__FILE__) . 'assets/jqvmap/jquery.vmap.min.js', true, '1.1');
861
  wp_enqueue_script('jquery-vmap-world', plugin_dir_url(__FILE__) . 'assets/jqvmap/maps/jquery.vmap.world.js', true, '1.1');
 
 
862
  }
863
 
864
  // Load our custom widgets handling javascript.
3
  Plugin Name: WP Statistics
4
  Plugin URI: http://wp-statistics.com/
5
  Description: Complete statistics for your WordPress site.
6
+ Version: 10.0.3
7
  Author: Mostafa Soufi & Greg Ross
8
  Author URI: http://wp-statistics.com/
9
  Text Domain: wp_statistics
12
  */
13
 
14
  // These defines are used later for various reasons.
15
+ define('WP_STATISTICS_VERSION', '10.0.3');
16
  define('WP_STATISTICS_MANUAL', 'manual/WP Statistics Admin Manual.');
17
  define('WP_STATISTICS_REQUIRED_PHP_VERSION', '5.3.0');
18
  define('WP_STATISTICS_REQUIRED_GEOIP_PHP_VERSION', WP_STATISTICS_REQUIRED_PHP_VERSION);
859
  wp_enqueue_style('jqvmap-css', plugin_dir_url(__FILE__) . 'assets/jqvmap/jqvmap.css', true, '1.1');
860
  wp_enqueue_script('jquery-vmap', plugin_dir_url(__FILE__) . 'assets/jqvmap/jquery.vmap.min.js', true, '1.1');
861
  wp_enqueue_script('jquery-vmap-world', plugin_dir_url(__FILE__) . 'assets/jqvmap/maps/jquery.vmap.world.js', true, '1.1');
862
+ } else {
863
+ wp_enqueue_script('google-maps', 'https://maps.google.com/maps/api/js');
864
  }
865
 
866
  // Load our custom widgets handling javascript.