Version Description
- [Note] Yep, our team is active even in August, while sunbathing somewhere on the US East Coast.
- [Update] Now all the 'Recent' reports leverage the new optimized SQL code, not just Activity Log.
- [Fix] Replaced function get_the_title with the_title_attribute (thank you, Pepe)
- [Fix] The GNU License notice was not hiding upon acceptance of the terms and conditions.
Download this release
Release Info
Developer | coolmann |
Plugin | Slimstat Analytics |
Version | 4.1.6.2 |
Comparing to | |
See all releases |
Code changes from version 4.1.6.1 to 4.1.6.2
- admin/config/index.php +1 -1
- admin/js/slimstat.admin.js +1 -1
- admin/view/wp-slimstat-reports.php +2 -2
- admin/wp-slimstat-admin.php +1 -2
- readme.txt +14 -8
- wp-slimstat.php +3 -10
admin/config/index.php
CHANGED
@@ -242,7 +242,7 @@ $options = array(
|
|
242 |
'show_sql_debug' => array('description' => __('Debug Mode','wp-slimstat'), 'type' => 'yesno', 'long_description' => __('Display the SQL queries used to retrieve the data.','wp-slimstat')),
|
243 |
'ip_lookup_service' => array('description' => __('IP Lookup','wp-slimstat'), 'type' => 'text', 'long_description' => __('Customize the Geolocation service to be used in the reports.','wp-slimstat')),
|
244 |
'custom_css' => array('description' => __('Custom CSS','wp-slimstat'), 'type' => 'textarea', 'long_description' => __("Paste here your custom stylesheet to personalize the way your reports look. <a href='https://slimstat.freshdesk.com/support/solutions/articles/5000528528-how-can-i-change-the-colors-associated-to-color-coded-pageviews-known-user-known-visitors-search-e' target='_blank'>Check the FAQ</a> for more information on how to use this setting.",'wp-slimstat')),
|
245 |
-
'enable_ads_network' => array('description' => __('Enable UAN','wp-slimstat'), 'type' => 'yesno', 'long_description' => __("Send anonymous data about user agents to our server for analysis. This allows us to contribute to the <a href='http://browscap.org/' target='_blank'>BrowsCap opensource project</a>, and improve the accuracy of Slimstat's browser detection functionality. It also enables our transparent ads network. No worries, your site will not be affected in any way.
|
246 |
)
|
247 |
),
|
248 |
|
242 |
'show_sql_debug' => array('description' => __('Debug Mode','wp-slimstat'), 'type' => 'yesno', 'long_description' => __('Display the SQL queries used to retrieve the data.','wp-slimstat')),
|
243 |
'ip_lookup_service' => array('description' => __('IP Lookup','wp-slimstat'), 'type' => 'text', 'long_description' => __('Customize the Geolocation service to be used in the reports.','wp-slimstat')),
|
244 |
'custom_css' => array('description' => __('Custom CSS','wp-slimstat'), 'type' => 'textarea', 'long_description' => __("Paste here your custom stylesheet to personalize the way your reports look. <a href='https://slimstat.freshdesk.com/support/solutions/articles/5000528528-how-can-i-change-the-colors-associated-to-color-coded-pageviews-known-user-known-visitors-search-e' target='_blank'>Check the FAQ</a> for more information on how to use this setting.",'wp-slimstat')),
|
245 |
+
'enable_ads_network' => array('description' => __('Enable UAN','wp-slimstat'), 'type' => 'yesno', 'long_description' => __("Send anonymous data about user agents to our server for analysis. This allows us to contribute to the <a href='http://browscap.org/' target='_blank'>BrowsCap opensource project</a>, and improve the accuracy of Slimstat's browser detection functionality. It also enables our transparent ads network. No worries, your site will not be affected in any way.",'wp-slimstat'))
|
246 |
)
|
247 |
),
|
248 |
|
admin/js/slimstat.admin.js
CHANGED
@@ -424,7 +424,7 @@ jQuery(function(){
|
|
424 |
// Accept terms and conditions
|
425 |
jQuery(document).on('click', '#slimstat-accept-terms', function(e){
|
426 |
e.preventDefault();
|
427 |
-
jQuery('.
|
428 |
data = {action: 'slimstat_enable_ads_feature', security: jQuery('#meta-box-order-nonce').val()};
|
429 |
jQuery.ajax({
|
430 |
url: ajaxurl,
|
424 |
// Accept terms and conditions
|
425 |
jQuery(document).on('click', '#slimstat-accept-terms', function(e){
|
426 |
e.preventDefault();
|
427 |
+
jQuery('.slimstat-notice').slideUp(1000);
|
428 |
data = {action: 'slimstat_enable_ads_feature', security: jQuery('#meta-box-order-nonce').val()};
|
429 |
jQuery.ajax({
|
430 |
url: ajaxurl,
|
admin/view/wp-slimstat-reports.php
CHANGED
@@ -1887,7 +1887,7 @@ class wp_slimstat_reports {
|
|
1887 |
$post_id = url_to_postid( $_resource );
|
1888 |
|
1889 |
if ( $post_id > 0 ) {
|
1890 |
-
$resource_title =
|
1891 |
}
|
1892 |
|
1893 |
// Is this a category or tag permalink?
|
@@ -1917,7 +1917,7 @@ class wp_slimstat_reports {
|
|
1917 |
}
|
1918 |
}
|
1919 |
|
1920 |
-
return
|
1921 |
}
|
1922 |
|
1923 |
public static function inline_help( $_text = '', $_echo = true ) {
|
1887 |
$post_id = url_to_postid( $_resource );
|
1888 |
|
1889 |
if ( $post_id > 0 ) {
|
1890 |
+
$resource_title = the_title_attribute( array( 'post' => $post_id, 'echo' => false ) );
|
1891 |
}
|
1892 |
|
1893 |
// Is this a category or tag permalink?
|
1917 |
}
|
1918 |
}
|
1919 |
|
1920 |
+
return $resource_title;
|
1921 |
}
|
1922 |
|
1923 |
public static function inline_help( $_text = '', $_echo = true ) {
|
admin/wp-slimstat-admin.php
CHANGED
@@ -11,8 +11,7 @@ class wp_slimstat_admin{
|
|
11 |
*/
|
12 |
public static function init(){
|
13 |
if ((wp_slimstat::$options['enable_ads_network'] == 'yes' || wp_slimstat::$options['enable_ads_network'] == 'no')){
|
14 |
-
self::$admin_notice = "
|
15 |
-
// self::$admin_notice = "Performance, performance, performance. This has been our mantra in the last few weeks. The new database API introduced in version 4 allowed us to clean up our code and reveal little hidden paths that lead to code perfection. <a href='https://wordpress.org/support/view/plugin-reviews/wp-slimstat#postform' target='_blank'>Let us know</a> if you notice any difference in the amount of time needed to generate your reports.";
|
16 |
self::$admin_notice .= '<br/><br/><a id="slimstat-hide-admin-notice" href="#" class="button-secondary">Got it, thanks</a>';
|
17 |
}
|
18 |
else {
|
11 |
*/
|
12 |
public static function init(){
|
13 |
if ((wp_slimstat::$options['enable_ads_network'] == 'yes' || wp_slimstat::$options['enable_ads_network'] == 'no')){
|
14 |
+
self::$admin_notice = "Performance, performance, performance. This has been our mantra in the last few weeks. The new database API introduced in version 4 allowed us to clean up our code and reveal little hidden paths that lead to code perfection. <a href='https://wordpress.org/support/view/plugin-reviews/wp-slimstat#postform' target='_blank'>Let us know</a> if you notice any difference in the amount of time needed to generate your reports.";
|
|
|
15 |
self::$admin_notice .= '<br/><br/><a id="slimstat-hide-admin-notice" href="#" class="button-secondary">Got it, thanks</a>';
|
16 |
}
|
17 |
else {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: analytics, tracking, reports, analyze, wassup, geolocation, online users, spider, tracker, pageviews, stats, maxmind, statistics, statpress
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 4.1.6.
|
8 |
|
9 |
== Description ==
|
10 |
[youtube https://www.youtube.com/watch?v=iJCtjxArq4U]
|
@@ -22,13 +22,13 @@ Stable tag: 4.1.6.1
|
|
22 |
* I like Slimstat very much and so I decided to use it instead of Piwik - [Joannes](http://wordpress.org/support/topic/plugin-wp-slimstat-slimstat-and-privacy)
|
23 |
* Read all the [reviews](http://wordpress.org/support/view/plugin-reviews/wp-slimstat) and feel free to post your own!
|
24 |
|
25 |
-
=
|
26 |
-
* WordPress 3.8
|
27 |
-
* PHP 5.3
|
28 |
-
* MySQL 5.0.3
|
29 |
-
*
|
30 |
-
* 5 MB of free DB space
|
31 |
-
*
|
32 |
* IE9+ or any browser supporting HTML5, to access the reports
|
33 |
|
34 |
= Premium Add-ons =
|
@@ -59,6 +59,12 @@ Our knowledge base is available on our [support center](http://docs.wp-slimstat.
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
= 4.1.6.1 =
|
63 |
* [New] Contextual counters are now added not just to pages and posts, but to other custom post types available on your website.
|
64 |
* [Update] Optimized SQL query that retrieves the data for the Access Log report.
|
4 |
Tags: analytics, tracking, reports, analyze, wassup, geolocation, online users, spider, tracker, pageviews, stats, maxmind, statistics, statpress
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 4.1.6.2
|
8 |
|
9 |
== Description ==
|
10 |
[youtube https://www.youtube.com/watch?v=iJCtjxArq4U]
|
22 |
* I like Slimstat very much and so I decided to use it instead of Piwik - [Joannes](http://wordpress.org/support/topic/plugin-wp-slimstat-slimstat-and-privacy)
|
23 |
* Read all the [reviews](http://wordpress.org/support/view/plugin-reviews/wp-slimstat) and feel free to post your own!
|
24 |
|
25 |
+
= Requirements =
|
26 |
+
* WordPress 3.8+
|
27 |
+
* PHP 5.3+
|
28 |
+
* MySQL 5.0.3+
|
29 |
+
* At least 5 MB of free web space
|
30 |
+
* At least 5 MB of free DB space
|
31 |
+
* At least 4 Mb of free PHP memory for the tracker (peak memory usage)
|
32 |
* IE9+ or any browser supporting HTML5, to access the reports
|
33 |
|
34 |
= Premium Add-ons =
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 4.1.6.2 =
|
63 |
+
* [Note] Yep, our team is active even in August, while sunbathing somewhere on the US East Coast.
|
64 |
+
* [Update] Now all the 'Recent' reports leverage the new optimized SQL code, not just Activity Log.
|
65 |
+
* [Fix] Replaced function get_the_title with the_title_attribute (thank you, [Pepe](https://wordpress.org/support/topic/html-code-in-reports-post-titles))
|
66 |
+
* [Fix] The GNU License notice was not hiding upon acceptance of the terms and conditions.
|
67 |
+
|
68 |
= 4.1.6.1 =
|
69 |
* [New] Contextual counters are now added not just to pages and posts, but to other custom post types available on your website.
|
70 |
* [Update] Optimized SQL query that retrieves the data for the Access Log report.
|
wp-slimstat.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP Slimstat
|
4 |
Plugin URI: http://wordpress.org/plugins/wp-slimstat/
|
5 |
Description: The leading web analytics plugin for WordPress
|
6 |
-
Version: 4.1.6.
|
7 |
Author: Camu
|
8 |
Author URI: http://www.wp-slimstat.com/
|
9 |
*/
|
@@ -11,7 +11,7 @@ Author URI: http://www.wp-slimstat.com/
|
|
11 |
if ( !empty( wp_slimstat::$options ) ) return true;
|
12 |
|
13 |
class wp_slimstat {
|
14 |
-
public static $version = '4.1.6.
|
15 |
public static $options = array();
|
16 |
|
17 |
public static $wpdb = '';
|
@@ -32,13 +32,6 @@ class wp_slimstat {
|
|
32 |
|
33 |
// Load all the settings
|
34 |
self::$options = ( is_network_admin() && ( empty($_GET[ 'page' ] ) || strpos( $_GET[ 'page' ], 'wp-slim-view' ) === false ) ) ? get_site_option( 'slimstat_options', array() ) : get_option( 'slimstat_options', array() );
|
35 |
-
|
36 |
-
// If no settings were found, we might be in the Network Admin with no "Network View" add-on enabled
|
37 |
-
if ( empty( self::$options ) && is_network_admin() ) {
|
38 |
-
self::$options = get_blog_option( 1, 'slimstat_options', array() );
|
39 |
-
}
|
40 |
-
|
41 |
-
// Initialize the options, if needed
|
42 |
self::$options = array_merge( self::init_options(), self::$options );
|
43 |
|
44 |
// Allow third party tools to edit the options
|
@@ -304,7 +297,7 @@ class wp_slimstat {
|
|
304 |
self::$stat['searchterms'] = self::_get_search_terms( $parsed_permalink );
|
305 |
}
|
306 |
|
307 |
-
self::$stat['resource'] = !is_array($parsed_permalink)?self::$data_js['res']
|
308 |
}
|
309 |
elseif ( empty( $_REQUEST[ 's' ] ) ) {
|
310 |
if ( !empty( $referer ) ) {
|
3 |
Plugin Name: WP Slimstat
|
4 |
Plugin URI: http://wordpress.org/plugins/wp-slimstat/
|
5 |
Description: The leading web analytics plugin for WordPress
|
6 |
+
Version: 4.1.6.2
|
7 |
Author: Camu
|
8 |
Author URI: http://www.wp-slimstat.com/
|
9 |
*/
|
11 |
if ( !empty( wp_slimstat::$options ) ) return true;
|
12 |
|
13 |
class wp_slimstat {
|
14 |
+
public static $version = '4.1.6.2';
|
15 |
public static $options = array();
|
16 |
|
17 |
public static $wpdb = '';
|
32 |
|
33 |
// Load all the settings
|
34 |
self::$options = ( is_network_admin() && ( empty($_GET[ 'page' ] ) || strpos( $_GET[ 'page' ], 'wp-slim-view' ) === false ) ) ? get_site_option( 'slimstat_options', array() ) : get_option( 'slimstat_options', array() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
self::$options = array_merge( self::init_options(), self::$options );
|
36 |
|
37 |
// Allow third party tools to edit the options
|
297 |
self::$stat['searchterms'] = self::_get_search_terms( $parsed_permalink );
|
298 |
}
|
299 |
|
300 |
+
self::$stat['resource'] = !is_array( $parsed_permalink ) ? self::$data_js[ 'res' ] : urldecode( $parsed_permalink[ 'path' ] ) . ( !empty( $parsed_permalink[ 'query' ] ) ? '?' . urldecode( $parsed_permalink[ 'query' ] ) : '' );
|
301 |
}
|
302 |
elseif ( empty( $_REQUEST[ 's' ] ) ) {
|
303 |
if ( !empty( $referer ) ) {
|