Version Description
- [Fix] Apparently more people than we initially thought have issues with the MaxMind data file not being saved as expected. We are introducing a temporary fix while we try to investigate this issue further.
Download this release
Release Info
Developer | coolmann |
Plugin | Slimstat Analytics |
Version | 4.7.3.1 |
Comparing to | |
See all releases |
Code changes from version 4.7.3 to 4.7.3.1
- admin/view/index.php +6 -8
- admin/view/right-now.php +3 -2
- admin/wp-slimstat-admin.php +3 -3
- maxmind.php +1 -1
- readme.txt +4 -1
- wp-slimstat.php +4 -6
admin/view/index.php
CHANGED
@@ -74,14 +74,12 @@
|
|
74 |
|
75 |
<label for="slimstat-filter-month">Month</label>
|
76 |
<select name="month" id="slimstat-filter-month">
|
77 |
-
<option value="0"><?php _e(
|
78 |
-
for
|
79 |
-
if
|
80 |
-
echo "<option value='$i' selected='selected'>"
|
81 |
-
|
82 |
-
|
83 |
-
echo "<option value='$i'>" . $GLOBALS[ 'wp_locale' ]->get_month_abbrev( $GLOBALS[ 'wp_locale' ]->get_month( $i ) ) . "</option>";
|
84 |
-
}
|
85 |
}
|
86 |
?>
|
87 |
</select>
|
74 |
|
75 |
<label for="slimstat-filter-month">Month</label>
|
76 |
<select name="month" id="slimstat-filter-month">
|
77 |
+
<option value="0"><?php _e('Month','wp-slimstat') ?></option><?php
|
78 |
+
for($i=1;$i<=12;$i++){
|
79 |
+
if(!empty(wp_slimstat_db::$filters_normalized['date']['month']) && wp_slimstat_db::$filters_normalized['date']['month'] == $i)
|
80 |
+
echo "<option value='$i' selected='selected'>".substr($GLOBALS['month'][zeroise($i, 2)], 0, 3)."</option>";
|
81 |
+
else
|
82 |
+
echo "<option value='$i'>".substr($GLOBALS['month'][zeroise($i, 2)], 0, 3)."</option>";
|
|
|
|
|
83 |
}
|
84 |
?>
|
85 |
</select>
|
admin/view/right-now.php
CHANGED
@@ -79,7 +79,8 @@ else {
|
|
79 |
$highlight_row = !empty($results[$i]['searchterms'])?' is-search-engine':(($results[$i]['browser_type'] != 1)?' is-direct':'');
|
80 |
|
81 |
// Country
|
82 |
-
|
|
|
83 |
$country_filtered = "<a class='slimstat-filter-link inline-icon' href='" . wp_slimstat_reports::fs_url( 'country equals ' . $results[ $i ][ 'country' ] ) . "'><img class='slimstat-tooltip-trigger' src='$plugin_url/images/flags/{$results[$i]['country']}.png' width='16' height='16' title='" . __( 'c-' . $results[ $i ][ 'country' ], 'wp-slimstat' ) . "'></a>";
|
84 |
}
|
85 |
|
@@ -128,7 +129,7 @@ else {
|
|
128 |
}
|
129 |
|
130 |
$whois_pin = '';
|
131 |
-
if ( is_admin() && !empty( wp_slimstat::$settings[ 'ip_lookup_service' ] ) && !in_array( $results[ $i ][ 'country' ], array( 'xx', 'xy' ) ) ) {
|
132 |
$whois_pin = "<a class='slimstat-font-location-1 whois' href='" . wp_slimstat::$settings[ 'ip_lookup_service' ] . "{$results[ $i ][ 'ip' ]}' target='_blank' title='WHOIS: {$results[ $i ][ 'ip' ]}'></a>";
|
133 |
}
|
134 |
|
79 |
$highlight_row = !empty($results[$i]['searchterms'])?' is-search-engine':(($results[$i]['browser_type'] != 1)?' is-direct':'');
|
80 |
|
81 |
// Country
|
82 |
+
$country_filtered = '';
|
83 |
+
if ( !empty( $results[ $i ][ 'country' ] ) && $results[ $i ][ 'country' ] != 'xx' ) {
|
84 |
$country_filtered = "<a class='slimstat-filter-link inline-icon' href='" . wp_slimstat_reports::fs_url( 'country equals ' . $results[ $i ][ 'country' ] ) . "'><img class='slimstat-tooltip-trigger' src='$plugin_url/images/flags/{$results[$i]['country']}.png' width='16' height='16' title='" . __( 'c-' . $results[ $i ][ 'country' ], 'wp-slimstat' ) . "'></a>";
|
85 |
}
|
86 |
|
129 |
}
|
130 |
|
131 |
$whois_pin = '';
|
132 |
+
if ( is_admin() && !empty( wp_slimstat::$settings[ 'ip_lookup_service' ] ) && !in_array( $results[ $i ][ 'country' ], array( '', 'xx', 'xy' ) ) ) {
|
133 |
$whois_pin = "<a class='slimstat-font-location-1 whois' href='" . wp_slimstat::$settings[ 'ip_lookup_service' ] . "{$results[ $i ][ 'ip' ]}' target='_blank' title='WHOIS: {$results[ $i ][ 'ip' ]}'></a>";
|
134 |
}
|
135 |
|
admin/wp-slimstat-admin.php
CHANGED
@@ -452,14 +452,14 @@ class wp_slimstat_admin {
|
|
452 |
}
|
453 |
// --- END: Updates for version 4.7.2.2 ---
|
454 |
|
455 |
-
// --- Updates for version 4.7.
|
456 |
-
if ( version_compare( wp_slimstat::$settings[ 'version' ], '4.7.
|
457 |
// Some users have reported that the MaxMind DB file has been created as an empty folder on their server
|
458 |
if ( file_exists( wp_slimstat::$maxmind_path ) && !is_file( wp_slimstat::$maxmind_path ) ) {
|
459 |
@rmdir( wp_slimstat::$maxmind_path );
|
460 |
}
|
461 |
}
|
462 |
-
// --- END: Updates for version 4.7.
|
463 |
|
464 |
// Now we can update the version stored in the database
|
465 |
wp_slimstat::$settings[ 'version' ] = wp_slimstat::$version;
|
452 |
}
|
453 |
// --- END: Updates for version 4.7.2.2 ---
|
454 |
|
455 |
+
// --- Updates for version 4.7.3.1 ---
|
456 |
+
if ( version_compare( wp_slimstat::$settings[ 'version' ], '4.7.3.1', '<' ) ) {
|
457 |
// Some users have reported that the MaxMind DB file has been created as an empty folder on their server
|
458 |
if ( file_exists( wp_slimstat::$maxmind_path ) && !is_file( wp_slimstat::$maxmind_path ) ) {
|
459 |
@rmdir( wp_slimstat::$maxmind_path );
|
460 |
}
|
461 |
}
|
462 |
+
// --- END: Updates for version 4.7.3.1 ---
|
463 |
|
464 |
// Now we can update the version stored in the database
|
465 |
wp_slimstat::$settings[ 'version' ] = wp_slimstat::$version;
|
maxmind.php
CHANGED
@@ -29,7 +29,7 @@ class maxmind_geolite2_connector {
|
|
29 |
}
|
30 |
}
|
31 |
else if ( !is_file( wp_slimstat::$maxmind_path ) ) {
|
32 |
-
return
|
33 |
}
|
34 |
|
35 |
return apply_filters( 'slimstat_get_country', $geo_output, $_ip_address );
|
29 |
}
|
30 |
}
|
31 |
else if ( !is_file( wp_slimstat::$maxmind_path ) ) {
|
32 |
+
return $geo_output;
|
33 |
}
|
34 |
|
35 |
return apply_filters( 'slimstat_get_country', $geo_output, $_ip_address );
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: analytics, statistics, counter, tracking, reports, wassup, geolocation, on
|
|
5 |
Text Domain: wp-slimstat
|
6 |
Requires at least: 3.8
|
7 |
Tested up to: 4.8.2
|
8 |
-
Stable tag: 4.7.3
|
9 |
|
10 |
== Description ==
|
11 |
The leading web analytics plugin for WordPress. Track returning customers and registered users, monitor Javascript events, detect intrusions, analyze email campaigns. Thousands of WordPress sites are already using it.
|
@@ -71,6 +71,9 @@ Our knowledge base is available on our [support center](http://docs.wp-slimstat.
|
|
71 |
5. **Responsive layout** - Keep an eye on your reports on the go
|
72 |
|
73 |
== Changelog ==
|
|
|
|
|
|
|
74 |
= 4.7.3 =
|
75 |
* [Fix] A [few users](https://wordpress.org/support/topic/cannot-install-maxmind-geolite-db/) pointed out a weird behavior when installing the MaxMind Geolocation data file, where an empty folder would be created instead of the actual file. If you still experience issues related to this problem, please make sure to delete the empty folder "maxmind.mmdb" under `wp-content/uploads/wp-slimstat/`.
|
76 |
* [Fix] Apparently Microsoft Security Essentials [was not pleased with our code](https://wordpress.org/support/topic/trojandownloader097m-donoff-detected-in-archive/), and was returning a false positive alert that a virus was included with the source code (thank you, Sasa).
|
5 |
Text Domain: wp-slimstat
|
6 |
Requires at least: 3.8
|
7 |
Tested up to: 4.8.2
|
8 |
+
Stable tag: 4.7.3.1
|
9 |
|
10 |
== Description ==
|
11 |
The leading web analytics plugin for WordPress. Track returning customers and registered users, monitor Javascript events, detect intrusions, analyze email campaigns. Thousands of WordPress sites are already using it.
|
71 |
5. **Responsive layout** - Keep an eye on your reports on the go
|
72 |
|
73 |
== Changelog ==
|
74 |
+
= 4.7.3.1 =
|
75 |
+
* [Fix] Apparently more people than we initially thought have issues with the MaxMind data file not being saved as expected. We are introducing a temporary fix while we try to investigate this issue further.
|
76 |
+
|
77 |
= 4.7.3 =
|
78 |
* [Fix] A [few users](https://wordpress.org/support/topic/cannot-install-maxmind-geolite-db/) pointed out a weird behavior when installing the MaxMind Geolocation data file, where an empty folder would be created instead of the actual file. If you still experience issues related to this problem, please make sure to delete the empty folder "maxmind.mmdb" under `wp-content/uploads/wp-slimstat/`.
|
79 |
* [Fix] Apparently Microsoft Security Essentials [was not pleased with our code](https://wordpress.org/support/topic/trojandownloader097m-donoff-detected-in-archive/), and was returning a false positive alert that a virus was included with the source code (thank you, Sasa).
|
wp-slimstat.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Slimstat Analytics
|
4 |
Plugin URI: http://wordpress.org/plugins/wp-slimstat/
|
5 |
Description: The leading web analytics plugin for WordPress
|
6 |
-
Version: 4.7.3
|
7 |
Author: Jason Crouse
|
8 |
Author URI: http://www.wp-slimstat.com/
|
9 |
Text Domain: wp-slimstat
|
@@ -15,7 +15,7 @@ if ( !empty( wp_slimstat::$settings ) ) {
|
|
15 |
}
|
16 |
|
17 |
class wp_slimstat {
|
18 |
-
public static $version = '4.7.3';
|
19 |
public static $settings = array();
|
20 |
|
21 |
public static $wpdb = '';
|
@@ -513,10 +513,8 @@ class wp_slimstat {
|
|
513 |
|
514 |
if ( !empty( $geolocation_data[ 'country' ][ 'iso_code' ] ) ) {
|
515 |
|
516 |
-
if ( $geolocation_data[ 'country' ][ 'iso_code' ] == '
|
517 |
-
self
|
518 |
-
self::_set_error_array( __( 'Your MaxMind data file is invalid', 'wp-slimstat' ), false );
|
519 |
-
return $_argument;
|
520 |
}
|
521 |
else {
|
522 |
self::$stat[ 'country' ] = strtolower( $geolocation_data[ 'country' ][ 'iso_code' ] );
|
3 |
Plugin Name: Slimstat Analytics
|
4 |
Plugin URI: http://wordpress.org/plugins/wp-slimstat/
|
5 |
Description: The leading web analytics plugin for WordPress
|
6 |
+
Version: 4.7.3.1
|
7 |
Author: Jason Crouse
|
8 |
Author URI: http://www.wp-slimstat.com/
|
9 |
Text Domain: wp-slimstat
|
15 |
}
|
16 |
|
17 |
class wp_slimstat {
|
18 |
+
public static $version = '4.7.3.1';
|
19 |
public static $settings = array();
|
20 |
|
21 |
public static $wpdb = '';
|
513 |
|
514 |
if ( !empty( $geolocation_data[ 'country' ][ 'iso_code' ] ) ) {
|
515 |
|
516 |
+
if ( $geolocation_data[ 'country' ][ 'iso_code' ] == 'xx' ) {
|
517 |
+
self::_set_error_array( __( 'Your MaxMind data file is invalid. Please uninstall it using the button in Settings > Maintenance.', 'wp-slimstat' ), false, 205 );
|
|
|
|
|
518 |
}
|
519 |
else {
|
520 |
self::$stat[ 'country' ] = strtolower( $geolocation_data[ 'country' ][ 'iso_code' ] );
|